Click here to Skip to main content
15,890,982 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
excuse me know how to create menus dynamically html5 buttons for example if resive a parameter with value 1 to create a sort of menu and if a parameter 2 resive create another different type of menu thanks for your answers and I am working with asp.net javascript
Posted

1 solution

You can create dynamic menus using the asp .net menu control. You can add a menu control at design time and menu items can be created dynamically. Your custom menu items can be created as per your interest.

Creation of Menu at design time:


Dynamically adding menu items:
XML
<asp:Menu runat="server" ID="mymenu">
      </asp:Menu>



mymenu.Items.Add(New MenuItem("Menu 1", "1"))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900