I want to use Bootstrap in my new ASP.Net MVC project, as you know the structure of Navbar is like:
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">Title</a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</div>
</div>
as you see the active Url have active class. I want to know how can I sense the active url and get it active class?
I use MVC 3 with Razor.