Text on an Image button in c# asp.net 3.5

后端 未结 9 1148
情话喂你
情话喂你 2020-12-03 17:52

I have a image button. I wanted to add a text \"Search\" on it. I am not able to add it because the \"imagebutton\" property in VS 2008 does not have text control in it. Can

9条回答
  •  盖世英雄少女心
    2020-12-03 18:49

    You can't do that with ImageButton.

    However, you can use a simple Button, set the text, and add a background image (bluebutton.gif) using CSS to achieve the desired effect.

提交回复
热议问题