开发者

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

开发者 https://www.devze.com 2022-12-31 22:10 出处:网络
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.

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 i开发者_Go百科s 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.


You can use the Repeater server control. You are in control of all of the markup output to the screen.

0

精彩评论

暂无评论...
验证码 换一张
取 消