Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
my gridview code-:

But it's not a div open in mouseover.

<asp:TemplateField>
<HeaderTemplate> PictureUrl </HeaderTemplate>
<itemtemplate>
<asp:Image ImageUrl='<%# Eval("FileUrl") %>'
ID="ImagePicture" Width="30" Height="30" onmouseout="this.style.width='30px';this.style.height='30px';" onmouseover="this.style.width='400px';this.style.height='300px';" runat="server" />
Posted

What is your issue?? Kindly tell your issue clearly.. You want to show image on mouseover event??
If that is your question, then you can handle rowDataBound Event to add mouseover attributes to the rows and specify your ImageUrl Property there...


In rowDataBound Event,

C#
if (e.Row.RowType == DataControlRowType.DataRow)
{
   Image img = (Image)e.Row.FindControl("yourImageId");
   img.Attributes.Add("onmouseover", "this.src='yourUrl'");
}
 
Share this answer
 
Refre this..

Just change tooltip like this..
HTML
<div id="tooltip">

<table style="color: rgba(148, 148, 148, 1); font-family: "Flamenco", cursive; text-transform: uppercase"></table></div>
 
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