Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
95265 Points
14072 Posts
Apr 06, 2010 05:32 PM|LINK
Hello,
To just simply display the text from multiline textbox in the same format all u need is...
Response.Write(TextBox1.Text.Replace(Environment.NewLine, "<br />"));
or else...
Response.Write(Server.HtmlDecode(TextBox1.Text.Replace(Environment.NewLine, "<br />").Trim()));
use a array of char in the Trim where you want to trim those chars...
Thats it...
If this is not your requirement then please ignore this psot...
Thanks.
ramiramilu
All-Star
95265 Points
14072 Posts
Re: Converting line breaks from a multiline textbox to html. - Firefox/Chrome issue
Apr 06, 2010 05:32 PM|LINK
Hello,
To just simply display the text from multiline textbox in the same format all u need is...
Response.Write(TextBox1.Text.Replace(Environment.NewLine, "<br />"));
or else...
Response.Write(Server.HtmlDecode(TextBox1.Text.Replace(Environment.NewLine, "<br />").Trim()));
use a array of char in the Trim where you want to trim those chars...
Thats it...
If this is not your requirement then please ignore this psot...
Thanks.
JumpStart