SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 362 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

InnerProperty),
TemplateContainer(typeof(SeperatorTemplateContainer))]
public ITemplate SeparatorTemplate
{
get
{
return separatorTemplate;
}
CHAPTER 6 ?–  SERVER CONTROL TEMPLATES 263
set
{
separatorTemplate = value;
}
}
private void CreateControlHierarchy()
{
if (HeaderTemplate != null)
{
BasicTemplateContainer header = new BasicTemplateContainer();
HeaderTemplate.InstantiateIn(header);
Controls.Add(header);
}
int count = menuData.Count;
for (int index = 0; index < count; index++)
{
MenuItemData itemdata = (MenuItemData)menuData[index];
HyperLink link = new HyperLink() { Text = itemdata.Title,
NavigateUrl = itemdata.Url, ImageUrl = itemdata.ImageUrl,
Target = itemdata.Target };
Controls.Add(link);
if (index != count - 1)
{
if (SeparatorTemplate != null)
{
SeperatorTemplateContainer separator = new SeperatorTemplateContainer();
SeparatorTemplate.InstantiateIn(separator);
Controls.Add(separator);
}
else
{
Controls.Add(new LiteralControl(" | "));
}
}
}
if (FooterTemplate != null)
{
BasicTemplateContainer footer = new BasicTemplateContainer();
FooterTemplate.InstantiateIn(footer);
Controls.Add(footer);
}
}
override protected void CreateChildControls()
264 CHAPTER 6 ?–  SERVER CONTROL TEMPLATES
{
Controls.


Pages:
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6