selami selami - 2 months ago 8
HTML Question

Multiline TextBox multiple newline

I set a value for a

Multiline Textbox
like this.

textBox1.Text = "Line1\r\n\r\nLine2";


But, only one line space in output.

When I read the value of textbox, I read
"Line1\r\nLine2"
;

Why does ASP.NET not support more then one lineline character?

Answer Source

textBox1.Text = "Line1\r\r\Line2";
Solved the problem.