How to replace tokens in the master page in asp.net mvc?
- by AngryHacker
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?