Export (0) Print
Expand All

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)

[TemplateContainerAttribute(typeof(MenuItemTemplateContainer))] 
public ITemplate StaticItemTemplate { get; set; }
/** @property */
public ITemplate get_StaticItemTemplate ()

/** @property */
public void set_StaticItemTemplate (ITemplate value)

public function get StaticItemTemplate () : ITemplate

public function set StaticItemTemplate (value : ITemplate)

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft