System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Specifies the template to use for displaying the content of a dynamic menu in a Menu control.
<asp:menu ... >
<dynamicitemtemplate>
... template definition here
</dynamicitemtemplate>
</asp:menu>
An ITemplate interface that defines how the content of a dynamic menu in a Menu control is rendered.
The property is read/write with no default value.
Use the DynamicItemTemplate to define the layout of elements for a dynamic menu in a Menu control.
To specify a template for displaying a dynamic menu, declare a <DynamicItemTemplate> element between the opening and closing tags of the control. You can then list the contents of the template between the opening and closing <DynamicItemTemplate> ... </DynamicItemTemplate>
tags.
In the DynamicItemTemplate, declare the appropriate HTML or server controls you intend to use. If the content of the dynamic menu is bound to a data source, set their data-binding expressions to evaluate to a field in the data source.
To control the style of the template, use the DynamicMenuStyle property.
Menu Members StaticItemTemplate