Hi All

I need to add mouseover event on hyperlink which is in a gridview.

What actually I need is displaying names of states in a gridview as hyperlink and when I take mouse over any state, it should navigate to a new page taking that stateid as querystring, So that I could request that stateid through query string and display information about that particular state in a newpage.
Any help is appreciated, Thanks in advance.

with Regards
wajid

Can u show me how u r binding the Gridview, so that i can get an idea on ur Question. Because there is a onmouseover event for hyperlink which u can use in ur case

Can u show me how u r binding the Gridview, so that i can get an idea on ur Question. Because there is a onmouseover event for hyperlink which u can use in ur case

You can use RowDataBound event of the GridView(GV) and then can use the eventarg e to Find the HyperLink using FindControl() method. Then you can insert a attriubute to that hyperlink of Mouseover.

hyplink.Attributes.Add("onmouseover","<text>");