Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've created a menu in visual web developer 2010, but i m unable to create
submenu.I tried in visual studio 2005 in this tool menu and submenu is working
properly.But in vs2010,menu and submenu have some problem,Now i ve to create
a submenu.Plz let me the solution,How do i create submenu

thanks
Posted

1 solution

This is wonderful. How come you did not find this sample:
http://msdn.microsoft.com/en-us/library/ecs0x9w5(v=VS.100).aspx[^]?

In C# code, use MenuItem.ChildItems.Add. See:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menuitem.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menuitemcollection.aspx[^] (MenuItemCollection — type of MenuItem.ChildItems).

—SA
 
Share this answer
 
v2

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