[ASP.NET] Menu control

Geffy

OSNN Veteran Addict
#1
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
Code:
[SIZE=2]<ul id="nav">
  <li><a href="/">Home</a></li>
  <li><a href="/logout/">Logout</a></li>
  <li><h2>Group 1</h2>
    <ul>
      <li><a href="/link1/">Link 1</a></li>
      <li><a href="/link2/">Link 2</a></li>
    </ul>
  </li>
  <li><h2>Group 2</h2>
    <ul>
      <li><a href="/link3/">Link 3</a></li>
      <li><a href="/link4/">Link 4</a></li>
      <li><a href="/link5/">Link 5</a></li>
    </ul>
  </li>
</ul>[/SIZE]


If anyone could provide me with some idea as to how I might be able to do this I would be much obliged.
 
#2
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 ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,969
Messages
673,295
Members
89,016
Latest member
mopiyaloog