asp.net多行文本框 [英] asp.net multiline textbox

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

问题描述


我有一个多行文本框,我想将大量文本附加到该文本框(例如3到4页).

大量的数据页面包含段落,标题,字体,颜色.....

谁能告诉我如何将大文本附加到文本框.

谢谢您,

Hi,
I have a multiline textbox and I want to attach large amount of text to that textbox(say for example 3 to 4 pages).

That large amount of data pages contains paragraphs,headings, fonts,colors.....

Can anyone tell me how to attach large text to to the the textbox.

Thank you,

推荐答案

您可以附加任意数量的数据,

设置
You can attach any number of data,

set
textBox1.Multiline = true;

.

还要注意MaxLength,不要设置太多会引起问题的

.

also take care of MaxLength, don''t set too much which can cause problems



如果您使用HTML TAGS保存数据,并且希望在检索时应用此格式,请很好地使用我的建议,请不要使用TextBox
您可以使用DIV 之类的HTML TAG,但是在这种情况下,您必须提供ID="div1" runat="server"并使用此属性来应用格式InnerHtml ,并且仅应用不带格式的文本,请使用InnerText
Hi ,
If you saving your data with HTML TAGS and you want when you are retrieved apply this Format well my advice for you don''t use TextBox
you can use HTML TAG like DIV but in this case you have to supply for ID="div1" runat="server" and use this attribute to apply format InnerHtml and for applying only text without format use InnerText
<div id="div1" runat="server">
                  </div>


div1.InnerHtml = ""; //applying format

div1.InnerText = ""; //only text


为了使您的文本框能够接收大量字母,就像这样


and for making your textbox take large numbers of letter it will be like that

<asp:TextBox ID="TextBox1" runat="server" Height="492px" TextMode="MultiLine"

 Width="994px"></asp:TextBox>


最好的问候
米特沃里(M.Mitwalli)


Best Regards
M.Mitwalli


Set txtBox1.Multiline=true;


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

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