Wednesday, January 20, 2010

In asp.net. how can i display image in control text box ?

i want display tag HTML in text box. like as %26lt;b%26gt;mytext%26lt;/b%26gt; but i want my text is boldIn asp.net. how can i display image in control text box ?
I am not quite sure if I understand you. You want the content of the textbox to be bold text? Is that what you are saying? If so then you need to click on the textbox, then in the property window expand the font property by click on the plus sign. Then locate bold right under font and make it true.In asp.net. how can i display image in control text box ?
You can easily style the font in your text box through using CSS.





Just add the following to your stylesheet


input { font-weight:bold; }





If you're using this in selected TextBoxes, you can add a class to your CSS:


.BoldText { font-weight:bold; }


and you assign the class to your textBox


%26lt;asp:TextBox id=';txt'; runat=';server'; CssClass=';BoldText'; /%26gt;








Hope this helps.

No comments:

Post a Comment