views:

782

answers:

3

code:


LinkButton linkButton = new LinkButton(); linkButton.OnClientClick="changecolor";--i need to change this to on mouse focus event


there is no property for for link button like we have onClientClick.

+3  A: 
linkButton.Attributes.Add("onmouseover", "yourChangeColorFunction();");
ullmark
If you only want to change the color I would recommend using CSS as Jalpesh wrote, only the syntax is "a:hover { color: blue; }"
ullmark
+2  A: 

you can define the css class for tha link button that will have diffent color when you hover.

a { color:black; } a.hover { color:blue; }

jalpesh
+1  A: 

it cant workin..!!

mayur