Multiline TextBox multiple newline

前端 未结 7 514
Happy的楠姐
Happy的楠姐 2020-12-05 10:09

I set a value for a Multiline Textbox like this.

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

But, only one line space in outpu

7条回答
  •  情话喂你
    2020-12-05 10:51

    When page IsPostback, the following code work correctly. But when page first loading, there is not multiple newline in the textarea. Bug

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

提交回复
热议问题