Export (0) Print
Expand All
Expand Minimize

Menu.StaticItemTemplate Property

Gets or sets the template that contains the custom content to render for a static menu.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[BrowsableAttribute(false)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[TemplateContainerAttribute(typeof(MenuItemTemplateContainer))]
public ITemplate StaticItemTemplate { get; set; }
<asp:Menu>
	<StaticItemTemplate>ITemplate</StaticItemTemplate>
</asp:Menu>

Property Value

Type: System.Web.UI.ITemplate
A 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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft