asp.net.ph

Menu.DynamicItemTemplate Property

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.

Syntax

<asp:menu ... >

   <dynamicitemtemplate>
      ... template definition here
   </dynamicitemtemplate>

</asp:menu>

Property Value

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.

Remarks

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.

See Also

Menu Members   StaticItemTemplate Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph