satmisha
asked on
High-Lighting the href tag that was Clicked Last in DataList in .Net
Hi Team,
I want to highlight href tag when I click it. As of now I am able to highlight it on mouse over but in order to keep it highlighted what I can do ?
In the below code I am using "categoryID" as href, on mouse over I can make it highlighted but after click how can I keep it highlighted ?
<div class="leftlinkpan">
<h6>
Projects Category
</h6>
<ul>
<li>
<asp:DataList ID="DlProject1" runat="server" RepeatColumns="1" RepeatDirection="Horizonta l"
OnItemDataBound="DlProject 1_ItemData Bound">
<ItemTemplate>
<a href='Project3.aspx?catego ryID=<%#Ev al("catego ryID")%>' class="active">
<%#Eval("categoryName")%>
</a>
</ItemTemplate>
</asp:DataList>
</li>
</ul>
</div>
Looking forward to hearing from you.
I want to highlight href tag when I click it. As of now I am able to highlight it on mouse over but in order to keep it highlighted what I can do ?
In the below code I am using "categoryID" as href, on mouse over I can make it highlighted but after click how can I keep it highlighted ?
<div class="leftlinkpan">
<h6>
Projects Category
</h6>
<ul>
<li>
<asp:DataList ID="DlProject1" runat="server" RepeatColumns="1" RepeatDirection="Horizonta
OnItemDataBound="DlProject
<ItemTemplate>
<a href='Project3.aspx?catego
<%#Eval("categoryName")%>
</a>
</ItemTemplate>
</asp:DataList>
</li>
</ul>
</div>
Looking forward to hearing from you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll appreciate if you could provide some exaple/code. I tried above one but couldn't get the success.
ASKER
Thankx
In you CSS define the LINK,ALINK and VLINK
http://www.htmlcodetutorial.com/document/_BODY_TEXT.html
http://www.w3schools.com/tags/att_body_vlink.asp
http://www.vbforums.com/showthread.php?290885-define-alink-vlink-link-in-CSS >> This page has CSS
Thanks
Deepu