System.Web.UI.WebControls.Menu.DynamicItemTemplate Property

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

Syntax

[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.MenuItemTemplateContainer), System.ComponentModel.BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue(null)]
public System.Web.UI.ITemplate DynamicItemTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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 Menu.DynamicItemTemplate property. To specify a custom template for a dynamic menu item, first place <DynamicItemTemplate> tags between the opening and closing tags of the System.Web.UI.WebControls.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 Menu.DynamicItemFormatString property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0