Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i used this but didn't got the output

XML
a.Grid:visited {
    border:1px ridge black;
    color:Purple;
}

<asp:LinkButton ID="lnkPage" runat="server" Text = '<%#Eval("Text") %>' CssClass="Grid"></asp:LinkButton>
Posted
Comments
Dharmendra-18 17-Oct-13 4:48am    
use jquery to modify it

http://api.jquery.com/css/
Member 10199143 17-Oct-13 5:36am    
Than you for your reply. I am a bit new to it. May I know how to use that

The css you were trying to apply for link visited wont be persisting after the postback as we used to do it for a hover.

you should try to change it using Javascript/Jquery or in the code behind as below .

C#
protected void LinkButton1_Click(object sender, EventArgs e)
       {
           LinkButton lb = (LinkButton)sender;
           lb.ForeColor = System.Drawing.Color.Purple;
       }


<asp:LinkButton ID="LinkButton1" runat="server" ForeColor="Black" OnClick="LinkButton1_Click">My Link Button</asp:LinkButton>


Hope this helps...
 
Share this answer
 
v2
http://www.webmasterworld.com/css/3725864.htm
try this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900