[ASP.NET] Menu control

Discussion in 'Web Design & Coding' started by Geffy, Jun 23, 2006.

  1. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    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. LazyJames

    LazyJames OSNN Addict

    Messages:
    77
    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.
     
  3. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom