Menu.StaticItemTemplate Property
.NET Framework (current version)
Gets or sets the template that contains the custom content to render for a static menu.
Assembly: System.Web (in System.Web.dll)
<BrowsableAttribute(False)> <PersistenceModeAttribute(PersistenceMode.InnerProperty)> <TemplateContainerAttribute(GetType(MenuItemTemplateContainer))> Public Property StaticItemTemplate As ITemplate
Property Value
Type: System.Web.UI.ITemplateA ITemplate that contains the custom content for a static menu. The default value is null, which indicates that this property is not set.
Instead of using the built-in rendering for a static menu, you can define your own user interface (UI) for a static menu item by using the StaticItemTemplate property. To specify a custom template for a static menu item, first place <StaticTemplate> tags between the opening and closing tags of the Menu control. You can then list the contents of the template between the opening and closing <StaticTemplate> tags. You can further control the style of a static menu by using the StaticMenuStyle property.
.NET Framework
Available since 2.0
Available since 2.0
Show: