I have an ASP.NET MVC application and I'm trying to implement tabs which will navigate to different pages. The tabs are implemented as a simple ASCX usercontrol, e.g.
<ul>
<li><a href="xyz1.html">Number One</a></li>
<li class="activePage"><a href="xyz2.html>Number Two</a></li>
<li><a href="xyz1.html">Number Three</a></li>
</ul>
The current page is designed through the "activePage" css class (in above demo code on tab #2).
What is an easy and efficient way to communicate to the ASCX which tab should get the activePage class without having to modify it for each page?
Sample code is highly appreciated.