OK new to MVC. I had asked this question earlier and got an answer but I am wondering if there is a simpler solution.
Say I have a master page with a menu laid out as an unordered list. How would I go about setting a css class on the currently selected menu item?
EDIT:
I am using the menu just as it comes setup out of the box when you start a new mvc app
<ul id="menu">
<li><%: Html.ActionLink("Home", "Index", "Home")%></li>
<li><%: Html.ActionLink("About", "About", "Home")%></li>
</ul>
The answer from Jakub Konecki led me in the right direction… here is the controller action I ended up with:
Hope this helps someone.