title: How to use ViewContext?
body: <p>I have layout page in asp.net MVC application and this page contains a navbar </p>
  
  <pre><code> &lt;ul class="sidenavbar"&gt;
     &lt;li&gt;&lt;a   style="font-size:large"&gt;ASP.NET Tutorial&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;@Html.ActionLink("Home","Home")&lt;/li&gt;
     &lt;li&gt;@Html.ActionLink("Introduction", "Introduction")&lt;/li&gt;
     &lt;li&gt;@Html.ActionLink("Getting Started", "GettingStarted")&lt;/li&gt;
   &lt;/ul&gt;
  </code></pre>
  
  <p>See I have <strong>actionmethod</strong> for each item in my <strong>navbar</strong> now I want to apply <strong>css</strong> class <strong>active</strong> to currently selected <strong>list</strong> <strong>item</strong> how can I achieve this using <strong>ViewContext</strong> or if there is any better way?</p>