How can I put some text on a imageButton

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

  1. #1

    Default How can I put some text on a imageButton

    dear all,I want to put some text(caption) on a imageButton in asp.net,I
    guess this maybe be done by deriving a new class from ImageButton,but I
    can't step any further.So,pls give me some suggestions.

    A world of thanks!


    Matthew Guest

  2. Similar Questions and Discussions

    1. ImageButton PostBack Help
      I cant figure out why this ImageButton doesn't post back the way a Button does. Can anyone explain to me why the RaisePostBackEvent() method doesn't...
    2. Imagebutton as commandbutton
      Hi, I want to use an imagebutton as commandbutton in a datagrid. When I add a column, say "delete", convert it to a template column and replace...
    3. Datagrid & imagebutton
      I have a datagrid with a templatecolumn, in this template there are two imagebutton, one for modify the record, one to cancel, but i'm not able to...
    4. Imagebutton over a little text
      Hi, How can I put a little text below a imagebutton control ? Is there any property ? tks ed
    5. Datagrid and Imagebutton
      try to write your code in the ItemCommand event of the datagrid (remove the code from your sub and put it in the ItemCommand event of the datagrid )...
  3. #2

    Default Re: How can I put some text on a imageButton

    It sounds like you want to build a text image on the fly. Here's an article
    that shows how to do it and more:

    [url]http://www.aspalliance.com/chrisg/default.asp?article=108[/url]

    Ken

    "Matthew" <wanghui@eachtech.com> wrote in message
    news:eE%23pizeRDHA.2008@TK2MSFTNGP11.phx.gbl...
    dear all,I want to put some text(caption) on a imageButton in asp.net,I
    guess this maybe be done by deriving a new class from ImageButton,but I
    can't step any further.So,pls give me some suggestions.

    A world of thanks!



    Ken Cox [Microsoft MVP] Guest

  4. #3

    Default Re: How can I put some text on a imageButton

    Here's another nice example from Chris Garrett:

    [url]http://www.aspalliance.com/chrisg/tools/view-LoadFont.vb.aspx[/url]

    "Matthew" <wanghui@eachtech.com> wrote in message
    news:eE%23pizeRDHA.2008@TK2MSFTNGP11.phx.gbl...
    dear all,I want to put some text(caption) on a imageButton in asp.net,I
    guess this maybe be done by deriving a new class from ImageButton,but I
    can't step any further.So,pls give me some suggestions.

    A world of thanks!



    Ken Cox [Microsoft MVP] 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