But because my limited knowledge and the post is in C#(Seems the c#-VB.NET converter not working for class..), i am not sure how to do it ..is there anyone can make some instruction in details in VB.NET?
Orelse, is there any way I can make all the items shown at the beginning while maintaining the menu structure?
(so that i can use javascript to control hide/show)
I tried to do this by setting statilevel to be "2",
however, this make all the tags become "li" instead of a "li-ul" relationship..
Here's
aexample that javascript override the default behavior of the menu and show the second level of menu items only when the user
clicks on the first (root) level menu items.
Bee90124
Member
33 Points
73 Posts
Menu control sub-item show issue
Mar 31, 2012 07:28 AM|LINK
Hello,
I have used the default asp.net menu control with the below structures
/*<ul id="menu1" class="mainlevel1"> <li> <a href="#">Programs & Courses</a> <ul class="mainlevel2"> <li> <a href="#">Faculty Profiles</a> </li> </ul> </li> </ul>*/However, I want the submenu to be shown when user click the main button instead of hover.
I read some article about this, and someone said to use a custom control to overwrite the method,
http://forums.asp.net/t/1138755.aspx
But because my limited knowledge and the post is in C#(Seems the c#-VB.NET converter not working for class..), i am not sure how to do it ..is there anyone can make some instruction in details in VB.NET?
Orelse, is there any way I can make all the items shown at the beginning while maintaining the menu structure?
(so that i can use javascript to control hide/show)
I tried to do this by setting statilevel to be "2",
however, this make all the tags become "li" instead of a "li-ul" relationship..
anyone can help please?
Thanks!!
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Menu control sub-item show issue
Apr 02, 2012 02:58 AM|LINK
Here's a example that javascript override the default behavior of the menu and show the second level of menu items only when the user clicks on the first (root) level menu items.
http://msd-bml.blogspot.com/2008/09/aspnet-menu-click-instead-of-hover.html
Feedback to us
Develop and promote your apps in Windows Store