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;