selami selami - 4 months ago 20
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

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

Answer Source

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