Link to home
Start Free TrialLog in
Avatar of satmisha
satmishaFlag for India

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="Horizontal"
                                OnItemDataBound="DlProject1_ItemDataBound">
                                <ItemTemplate>
                                 
                                        <a href='Project3.aspx?categoryID=<%#Eval("categoryID")%>' class="active">
                                            <%#Eval("categoryName")%>
                                        </a>
                           
                                </ItemTemplate>
                            </asp:DataList>
                     
                        </li>
                    </ul>
                </div>

 Looking forward to hearing from you.
Avatar of deepu chandran
deepu chandran
Flag of Germany image

ASKER CERTIFIED SOLUTION
Avatar of jayakrishnabh
jayakrishnabh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of satmisha

ASKER

I'll appreciate if you could provide some exaple/code. I tried above one but couldn't get the success.
Thankx