Image Button with Text
-
How to add a text with the Image button ? I am adding a Image button in a Panel Bar at the run time. We can providea Tooltip for an Image, but how to provide an Text for an Image Button. i.e. Image with Some text as one Image button. With Thanks & Regards, Madhu .
-
How to add a text with the Image button ? I am adding a Image button in a Panel Bar at the run time. We can providea Tooltip for an Image, but how to provide an Text for an Image Button. i.e. Image with Some text as one Image button. With Thanks & Regards, Madhu .
why dont you use a regular asp:button and create a CSS class for it. That way you can have anytext you want on the graphical button. Like: in the CSS file, create the css class for this INPUT.PCTButton { width:129px; /*image with*/ height:25px; /*image height*/ background-image: URL(img/ButtonBg1.gif); /*the image background*/ border: 0px; background-color:Transparent; Cursor:hand; } serkan
-
How to add a text with the Image button ? I am adding a Image button in a Panel Bar at the run time. We can providea Tooltip for an Image, but how to provide an Text for an Image Button. i.e. Image with Some text as one Image button. With Thanks & Regards, Madhu .
You can use GDI in the System.Drawing namespace to load an image into an obect and manipulate it, (add text to it) and then save it. A common technique in ASP.NET is to set the ResponseStream of an aspx page to the stream containing the image, and change the content type to the image type. This way an aspx page can act as an image and can be set as the image for an image button. hope this helps, sivilian