Export (0) Print
Expand All

Menu.DynamicItemTemplate Property

Note: This property is new in the .NET Framework version 2.0.

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

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

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

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

public function get DynamicItemTemplate () : ITemplate

public function set DynamicItemTemplate (value : ITemplate)

Property Value

A ITemplate that contains the custom content for a dynamic menu. The default value is null, which indicates that this property is not set.

Instead of using the built-in rendering for a dynamic menu, you can define your own look and feel for a dynamic menu item by using the DynamicItemTemplate property. To specify a custom template for a dynamic menu item, first place <DynamicItemTemplate> 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 <DynamicItemTemplate> tags. You can further control the style of a dynamic menu by using the DynamicItemFormatString property.

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

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft