How to get tool tip imagebutton1 to imagebutton2.

Posted by maninaanee-8287 under ASP.NET on 12/15/2011 | Points: 10 | Views : 1155 | Status : [Member] | Replies : 5
Hi,
Once check my code. I want tooltip in image2. please guide me.
.aspx page: <asp:ImageButton ID="image1" ImageUrl="Images/Desert.jpg" ToolTip="Hey,it's working" runat="server" OnClick="btn_click"/>

.cs page:
protected void btn_click(object sender, EventArgs e)
{
image1.ImageUrl = @"Images\PT2.bmp";
// image1.ToolTip = @"Images\PT2.bmp";
}
Thanks & Regards,
Honey.




Responses

Posted by: Gow.net on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
asp page
<asp:ImageButton ID="image1" ImageUrl="Images/Desert.jpg" ToolTip="Hey,it's working"

runat="server" onclick="image1_Click" />


.cs page
protected void image1_Click(object sender, ImageClickEventArgs e)

{
image1.ImageUrl = @"Images\PT2.bmp";
image1.ToolTip = @"Images\PT2.bmp";
}


in asp page you change onclick property and also .cs page image1.Click ok

gowthaman8870226416

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: maninaanee-8287 on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
it's not working

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.net on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
try that sample coding
 Download source file

gowthaman8870226416

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: maninaanee-8287 on: 12/16/2011 [Member] Starter | Points: 25

Up
0
Down
It's not getting tooltip in image2. once check it.

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.net on: 12/16/2011 [Member] Starter | Points: 25

Up
0
Down
can send your coding to me

gowthaman8870226416

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response