[ASP.NET] Menu control


OSNN Veteran Addict
I personally prefer the likes of PHP or Ruby on Rails for web development, but I am required to create a web application in ASP.NET for my employers.

In order to make it reasonably extendable I would like to make use of the SiteMap stuff and the Menu control. However I would actually like to have a menu that looks nice. As opposed to the pile of steaming **** that is the standard Menu control appearance.

I want the menu to look something like this
[SIZE=2]<ul id="nav">
  <li><a href="/">Home</a></li>
  <li><a href="/logout/">Logout</a></li>
  <li><h2>Group 1</h2>
      <li><a href="/link1/">Link 1</a></li>
      <li><a href="/link2/">Link 2</a></li>
  <li><h2>Group 2</h2>
      <li><a href="/link3/">Link 3</a></li>
      <li><a href="/link4/">Link 4</a></li>
      <li><a href="/link5/">Link 5</a></li>

If anyone could provide me with some idea as to how I might be able to do this I would be much obliged.
My advice would be to use a TreeView control. It will add the list like formatting and allow for users to collapse or expand the menu. It can also use a XML or sitemap data source. Graphically it doesnt look much better, although you do have more AutoFormat options. It might be what you need.

Members online

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member