Simple list based output instead of style and javascript ridden ASP.net webforms menu

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-23T00:11:53Z Indexed on 2010/05/23 0:20 UTC
Read the original article Hit count: 518

Filed under:
|
|
|

Hi All,

Is there a way (or component i could use) to output a simple menu. I just need it output as a list, like you would use for a simple superfish menu.

I've looked at the menu control and cssadapters (css friendly) which kind of works, except there is a lot of styles and javascript output with the menu which is destroying the look.

If I can't find something that outputs a clean list, my next option is to craft some jquery to delete these styles. This is not my preferred option. If you have a better idea, please let me know.

Just something that looks like this:

<ul> Main Menu
 <li> hi </li>
 <li> second menu
    <ul> 
        <li> <a href="hi.aspx"> in second menu </a></li>
        <li> <a href="rabbits.aspx"> hi there </a></li>
    </ul>
 </li>
</ul>

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about webforms