how to make button with a little image icon

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default how to make button with a little image icon

    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!
    David Guest

  2. Similar Questions and Discussions

    1. How to create Button Icon from PNG?
      I don't know whether if Acrobat / Reader support using PNG as button icon. If it can how to create the icon form PNG? Thanks.
    2. How to use icon instead of bitmap for image on button in toolbar?
      Hello, I am trying to use an image that has a transparent background on one of the buttons on our custom toolbar in Adobe Acrobat. In the past...
    3. Icon on button:
      I wonder to attach a icon on a button. After created the icon, i still cannot see. May i know what is the mistake i may make? Thanks your concern....
    4. All i can see is a broken image icon (this is a littlepaper looking icon with a circle, square and triangle in it
      Ever since i got flash player 9 my flash player dosn't wok at all. All i can see is a broken image icon (this is a little piece of paper looking...
    5. How to get the button icon using the FDF toolkit?
      We know that we can take advantage of FDF to send graphical information in either direction between the client and the server. According to this, I...
  3. #2

    Default Re: how to make button with a little image icon

    Have you looked into the asp:ImageButton?

    bill
    "David" <huayuli@yahoo.com> wrote in message
    news:c1708ee0.0308041035.3b40cbf0@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!

    William F. Robertson, Jr. Guest

  4. #3

    Default Re: how to make button with a little image icon

    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" <huayuli@yahoo.com> wrote in message
    news:c1708ee0.0308041500.6dd10c47@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." <wfrobertson@kpmg.com> wrote in message
    news:<#Nom$qrWDHA.1632@TK2MSFTNGP11.phx.gbl>...
    > > Have you looked into the asp:ImageButton?
    > >
    > > bill
    > > "David" <huayuli@yahoo.com> wrote in message
    > > news:c1708ee0.0308041035.3b40cbf0@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!

    William F. Robertson, Jr. Guest

  5. #4

    Default Re: how to make button with a little image icon

    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" <kevin@takempis.com> wrote in message news:<uZft5C1WDHA.1644@TK2MSFTNGP10.phx.gbl>...
    > It can be done with styles - on some browsers.
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    David Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139