多行TextBox的多个新行 [英] Multiline TextBox multiple newline

查看:156
本文介绍了多行TextBox的多个新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设定值多行TextBox 是这样的。

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

但是,在输出只有一行空间

But, only one line space in output.

当我读到文本框的值,我读线路1 \\ r \\ nLine2;

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

为什么ASP.NET不支持超过一个lineline字符?

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

推荐答案

textBox1.Text =1号线\\ r \\ r \\ 2号线;
解决了问题。

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

这篇关于多行TextBox的多个新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆