image button in asp.net

Posted by Shoyebaziz123 under ASP.NET on 11/14/2009 | Views : 1580 | Status : [Member] | Replies : 4
Hi All,

i want to display (image-Text) on image button ....whereimage is some image and tex is some text on right side of image ?

Thanks




Responses

Posted by: Bageshkumarbagi on: 10/16/2012 [Member] Starter | Points: 25

Up
0
Down
hi
<asp:imagebutton id="ImgButton" runat="server" src="path/to/image.gif" />

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

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

Posted by: Vuyiswamb on: 11/14/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Shoyebaziz123

The Image Control in ASP.net must have a Text Property. am not sure am not infront of my Computer. but you will do it like this

Image1.Text = "Hello world";


Thank you for posting at DotnetFunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Poster on: 11/15/2009 [Member] Starter

Up
0
Down
Simply put like this.

<img src="/myimage.jpg" style="text-valign:middle;" />My text


This will make the text appear at the right side of the image.

Thank you

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

Posted by: Abhi2434 on: 12/4/2009 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Also use clear:none as style to ensure it works properly.

www.abhisheksur.com

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

Login to post response