selami selami - 11 months ago 55
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download