KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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>
Tags (comma-separated)
Save Edits
Cancel