Hi, I want to change image1 tooltip to image2.

Posted by maninaanee-8287 under ASP.NET on 12/16/2011 | Points: 10 | Views : 1224 | Status : [Member] | Replies : 1
<asp:ImageButton ID="image1" ImageUrl="Images/a2.jpg" ToolTip="Hey,it's working" runat="server" OnClick="btn_click"/>

,,,,,,,,,,,,,,,,,,,,,,,,,,,,

protected void btn_click(object sender, EventArgs e)
{
image1.ImageUrl = @"Images/a3.jpg";


}

I want to change image1 tooltip to image2.




Responses

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

Up
0
Down
try this
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";

}

 Download source file

gowthaman8870226416

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

Login to post response