By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,786 Members | 1,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,786 IT Pros & Developers. It's quick & easy.

how to make button with a little image icon

P: n/a
Hi,

I am very new in the asp.net realm so this may be a very simple
question for most of you. I want to put a little image icon in every
button on my web form but there is no attribute in asp:Button allowing
me to do this. Basically, the buttons are Text buttons except that
there there is a small image icon before every button text. I am
thinking about using Custom Control but I'm not sure if it is really
necessary for my purpose. Thanks for any help for you!
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Have you looked into the asp:ImageButton?

bill
"David" <hu*****@yahoo.com> wrote in message
news:c1**************************@posting.google.c om...
Hi,

I am very new in the asp.net realm so this may be a very simple
question for most of you. I want to put a little image icon in every
button on my web form but there is no attribute in asp:Button allowing
me to do this. Basically, the buttons are Text buttons except that
there there is a small image icon before every button text. I am
thinking about using Custom Control but I'm not sure if it is really
necessary for my purpose. Thanks for any help for you!

Nov 17 '05 #2

P: n/a
I can't think of any way without using the styles Keving suggested, but you
are limiting your self to certain browsers.

Another possible solution for you is to use the ImageButton, and then set
the ToolTip property to the text that you want to display.

HTH,
bill

"David" <hu*****@yahoo.com> wrote in message
news:c1**************************@posting.google.c om...
Thanks Bill but the ImageButton does not allow you to show the button
Text. Is there a way to get the combination of an image and some texts
on the button? Thanks!
"William F. Robertson, Jr." <wf*********@kpmg.com> wrote in message

news:<#N**************@TK2MSFTNGP11.phx.gbl>...
Have you looked into the asp:ImageButton?

bill
"David" <hu*****@yahoo.com> wrote in message
news:c1**************************@posting.google.c om...
Hi,

I am very new in the asp.net realm so this may be a very simple
question for most of you. I want to put a little image icon in every
button on my web form but there is no attribute in asp:Button allowing
me to do this. Basically, the buttons are Text buttons except that
there there is a small image icon before every button text. I am
thinking about using Custom Control but I'm not sure if it is really
necessary for my purpose. Thanks for any help for you!

Nov 17 '05 #3

P: n/a
How about Custom Control or User Control? This should not be
complicated because the only thing we want is a Text button with icon.
Thanks for any advice!
"Kevin Spencer" <ke***@takempis.com> wrote in message news:<uZ**************@TK2MSFTNGP10.phx.gbl>...
It can be done with styles - on some browsers.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.