Change the output of the Html.menu() asp control .

Posted by user327893 on Stack Overflow See other posts from Stack Overflow or by user327893
Published on 2010-05-14T14:39:06Z Indexed on 2010/05/14 14:44 UTC
Read the original article Hit count: 253

Im creating a asp mvc application and im using a sitemap to create my menu.

Is it possible to change the output of the Html.menu() asp control?

normal output:

<ul>
    <li><a href="#">Item 1</li>
    <li><a href="#">Item 2</li> 
</ul>

needed output:

<ul>
    <li><a href="#"><span>Item 1</span></li>
    <li><a href="#"><span>Item 2</span></li> 
</ul>

Or should i filter true the nodes of the sitemap to get the format i want??

TY in advance:)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc