Menu::DynamicItemTemplate Property
Gets or sets the template that contains the custom content to render for a dynamic menu.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] [TemplateContainerAttribute((MenuItemTemplateContainer^::typeid))] property ITemplate^ DynamicItemTemplate { ITemplate^ get(); void set(ITemplate^ value); }
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.
Available since 2.0