Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Menu.DynamicItemTemplate Property

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)
[BrowsableAttribute(false)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[TemplateContainerAttribute(typeof(MenuItemTemplateContainer))]
public ITemplate DynamicItemTemplate { get; set; }
<asp:Menu>
	<DynamicItemTemplate>ITemplate</DynamicItemTemplate>
</asp:Menu>

Property Value

Type: System.Web.UI.ITemplate
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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.