How to get text on mouse over image in Gridview ?

Posted by Santhosh.Nallavelli under ASP.NET on 6/7/2012 | Points: 10 | Views : 2840 | Status : [Member] | Replies : 2
Hi All ,

I used CommandField property in Gridview with button type of image . I want to display the text on image when mouse is hovered on it .

Thanks in Advance !




Responses

Posted by: Oswaldlily on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
In image property ,include "tooltip="your text""
<asp:image id="img" runat="server" "tooltip="your text">

like this

Santhosh.Nallavelli, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
Use Tooltip='<%#Databinder.Eval(Container.DataItem,"Clumn_name")%>'

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Santhosh.Nallavelli, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response