Monday, July 27, 2009

How to format(bold/italic/colors..etc... text in textarea using c#.net(asp.net)?

how to format(bold/italic/colors..etc) text in textarea using c#.net(asp.net) without using third party component

How to format(bold/italic/colors..etc... text in textarea using c#.net(asp.net)?
Typically you can resort to StyleSheet.





In your StyleSheet you might right something like:


input.text { font-size:11px; font-weight:bold; }





If you're using ASP.NET 2.0, you can resort to skins.





A skin is a definition of styles applied to the server controls in your ASP.NET page. Skins can work in conjunction with CSS files or images. To create a theme to use in your ASP.NET applications, you use just a single skin file in the theme folder. The skin file can have any name, but it must have a .skin file


extension.
Reply:by giving like the following code,


%26lt;asp:Text


id="txt";


Font-bold=true;


Font-italic=true;


Forecolor="red";


runat="server";


/%26gt;





the text can be formatted in asp.net
Reply:you building a web site or doing games? web site use HTML or XHTML


No comments:

Post a Comment