C
chris
Hi there,
I'd like ASP.NET (C#, preferably) to highlight the active link in the
navigation menu of my site. At present the links are anchors within a
..ascx user control, which appears on all the pages of the site.
What I'd like to do is compare the current URL to each of the link
HREFs and change the CSS class of the link that matches.
I've done this before in PHP, but I'm not sure of an elegant approach
in ASP.NET.
I'd be grateful if you could help out.
Thanks
Chris Beach
I'd like ASP.NET (C#, preferably) to highlight the active link in the
navigation menu of my site. At present the links are anchors within a
..ascx user control, which appears on all the pages of the site.
What I'd like to do is compare the current URL to each of the link
HREFs and change the CSS class of the link that matches.
I've done this before in PHP, but I'm not sure of an elegant approach
in ASP.NET.
I'd be grateful if you could help out.
Thanks
Chris Beach