I'm in the process of building a new menu editor for someone at work. I don't know if I've been at this too long or just can't see the forest for the trees....
The database structure's menu items like
id, title, parentid, listorder, link, etc
I'm trying to write this to the asp.net page like so:
<ul>
<li>menu 1</li>
<li>menu 2
<ul>
<li>submenu 1</li>
</ul>
</li>
</ul>
Of course, there may be any number of sub menus, sub submenus, etc...
If there was only 1 nested submenu it would be easy, but what is the best way to handle unlimited submenus and a simple code example of such?
FYI, I'm using VS 2008 targeting .Net 2.0