How to replace tokens in the master page in asp.net mvc?

Posted by AngryHacker on Stack Overflow See other posts from Stack Overflow or by AngryHacker
Published on 2010-03-21T01:40:33Z Indexed on 2010/03/21 1:41 UTC
Read the original article Hit count: 473

Filed under:
|
|
|

I have a master page in my asp.net MVC project, which has code like this:

    <div id="menu">
        <ul>
            <li><a href="#" class="current">home</a></li>
            <li><a href="#">add image</a></li>
            <li><a href="#">contact</a></li>
        </ul>
    </div>

Depending on what page I am on, I'd like to move the class="current" attribute to a different <li>.

What is the general pattern that this type of thing is done with on ASP.NET MVC?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about vs2008