this is probably ridiculous but here goes...
I have a C# asp site I am working on that uses a master page to wrap my header, top navigation and footer within my container.
you can view my site at the following link http://www.devplcellc.com/
My top navigation currently is a static html/css menu and I would like to have the selected link remain highlighted dynamically. I have the html code placed within a web user control. I am confused as to what code I need to insert in the code behind to have the link stay on it's a:active state once it has been clicked.
I am relatively new when it comes to working with server side c# logic (less than a year) in ascx.cs files and I am not comfortable writing c# logic off the top of my head. However, once I see code examples I can almost always interpret the logic correctly. Can someone please give me an example of how I mark up my href''s to include an id as well as the proper code behind? Any help would be greatly appreciated.
I don't believe I can go the easier route and assign classes to the body tags on each asp page because they inherit off of master page.
example .ascx file for my top navigation
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="topNav.ascx.cs" Inherits="controls_topNav"
<a id="a:active" href="/remanufacturing/Def
background-image: url( "/images/topNav.png" );
padding: 0px 0px 0px 0px;
border-bottom: 2px solid red;
padding: 11px 10px 0px 10px;
#DivTopNav #DivTopNavMenu a, #DivTopNav #DivTopNavMenu a:visited
padding: 0px 15px 0px 15px;
font-family:"Times New Roman", Times, serif;
#DivTopNav #DivTopNavMenu a:hover, #DivTopNav #DivTopNavMenu a:active