title: setting active class in c#.net masterpage
body: <pre><code>&lt;div id="navigation"&gt; 
     &lt;ul class="nav nav-pills"&gt;
        &lt;li role="presentation"&gt;&lt;a href="Default.aspx"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a href="open-account.aspx"&gt;Open Account&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a href="atm_authenticate.aspx"&gt;ATM&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a href="#"&gt;Branch Locator&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a href="#"&gt;Contact US&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to set active class in li tag based on the visited link, I have tried several answers from Stackoverflow but none seems to me working.</p>
  
  <p>For your information, I am using Bootstrap, C#, Visual Studio for my development.</p>