Articles in this section
Category / Section

How to add template control in menu items?

1 min read

 

Set TemplateID property of the MenuItem to the id of the TemplateControl.

C#

< cc1:MenuItem TemplateID="TmpCalendar" Text="Calendar">

< Templates>

< cc1:TemplateControl ID="TmpCalendar">

< Template>

< asp:Calendar id="Calendar1" runat="server">< /asp:Calendar>

< /Template>

< /cc1:TemplateControl>

< /Templates>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied