title: ASP.NET MVC Menu Selected Item
body: <p>OK new to MVC. I had asked <a href="https://stackoverflow.com/questions/4647135/asp-net-mvc-sitemap-and-or-security-trimming">this</a> question earlier and got an answer but I am wondering if there is a simpler solution.</p>
  
  <p>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?</p>
  
  <p>EDIT:</p>
  
  <p>I am using the menu just as it comes setup out of the box when you start a new mvc app</p>
  
  <pre><code>&lt;ul id="menu"&gt;              
     &lt;li&gt;&lt;%: Html.ActionLink("Home", "Index", "Home")%&gt;&lt;/li&gt;
     &lt;li&gt;&lt;%: Html.ActionLink("About", "About", "Home")%&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>