System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Specifies the template to use for displaying the content of a static menu in a Menu control.
<asp:menu ... >
<staticitemtemplate>
... template definition here
</staticitemtemplate>
</asp:menu>
An ITemplate interface that defines how the content of a static menu in a Menu control is rendered.
The property is read/write with no default value.
Use the StaticItemTemplate to define the layout of elements for a static menu in a Menu control.
To specify a template for displaying a static menu, declare a <StaticItemTemplate> element between the opening and closing tags of the control. You can then list the contents of the template between the opening and closing <StaticItemTemplate> ... </StaticItemTemplate>
tags.
In the StaticItemTemplate, declare the appropriate HTML or server controls you intend to use. If the content of the static 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 StaticMenuStyle property.
Menu Members
DynamicItemTemplate