Click here to Skip to main content
16,001,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to give effect of text colored change on mouse hover to the asp.net hyperlink control how can i give that ??
Posted
Comments
Sergey Alexandrovich Kryukov 20-Mar-13 13:31pm    
Is it really so hard to find? Why asking?
—SA

All you need is this: http://www.w3schools.com/cssref/sel_hover.asp[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 20-Mar-13 14:25pm    
Nice :-D
Sergey Alexandrovich Kryukov 20-Mar-13 14:33pm    
Not too hard, anyway :-)
Thank you, Espen.
—SA
vihangshah 21-Mar-13 4:39am    
i need it for asp.net control not html hyperlink control thats hard..this way i already know but i want this effect for asp.net hyperlink control...!!!!
Sergey Alexandrovich Kryukov 21-Mar-13 10:29am    
Your comment makes no sense at all. There are no such thing as "ASP.NET control" on the client side. Everything is rendered as HTML.
In other words, the answer will work.

Look, I feel concerned now: from your comment it looks like you have no clue how ASP.NET (HTTP and Web in general) works. Please, do yourself a favor: learn the very basics first, if can save you from further troubles. :-)

—SA
What S.A said is correct.. All aspx controlls will rendered as html controls..
For more clarification put Aspx controls, run the page and see the page source on right button click..

If you still didn't get try below..
css
CSS
.mylink{color:#565656; text-decoration:underline;cursor:pointer;}
.mylink:hover{color:Orange;}

Aspx control
ASP.NET
<asp:hyperlink id="HyperLink1" class="mylink" runat="server" xmlns:asp="#unknown">click here</asp:hyperlink>

Hope you got solution..
 
Share this answer
 
v2

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