vb.net - how to add childItem to another childItem in a menuItem ASP.NET -


i need whit code, have next menuitem in asp.net:

1 -> 1.1

and need add menu 1.1 new child (1.1.1)

1 -> 1.1 -----> 1.1.1

but not know how it, code:

    dim menu = new menuitem()     menu .text = "1"     menu .navigateurl = ""     menu1.items.add(menu)      dim menuchild = new menuitem()     menuchild .text = "1.1"     menuchild .navigateurl = ""     menu.childitems.add(menuchild) 

thanks!

this works...

 dim submenuchild = new menuitem()  submenuchild.text = "1.1.1"  submenuchild.navigateurl = ""  menuchild.childitems.add(submenuchild) 

or else looking for?


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -