Question : Get Current selected link - apply css

I have a master page with menu in the top as <li> tags (style as tabs)  each one is a link to different page with same master page. I want to apply different css style when that link is selected and remove it when it is not selected. how can I do that? thanks!
1:
2:
3:
4:
...... masterPage.....
<li ><a href="/Default.aspx" id="homeNav"><span>Home</span></a></li>
<li > <a href="/admin/Admin.aspx" id="adminNav"> <span>Admin </span></a> </li>  
...............

Answer : Get Current selected link - apply css

here is one way you can try:

if (Request.Url.ToString().Contains("/docs/"))
{
   docsTab.CssClass = "docs";
}
Random Solutions  
 
programming4us programming4us