2015-01-14 32 views
0

我有一個aspx頁面不能從一個textarea asp.net

Continut:<TextArea maxlength="4000" ID="Continut" name="Continut" runat="server" style="background-color: white; border : 1px solid #cccccc; width : 700px; height : 250px; resize : none;"></TextArea> 

內聲明下面的文本區域採取文本和我想利用這個textarea的在C#中的文本。我在C#中使用的代碼看起來像這樣

this.Request.Form["Continut"].Length < 1? "":this.Request.Form["Continut"] 

有什麼我做錯了或我只是不完全明白這是如何工作的?

P.S. :我嘗試了另一個代碼,我得到一個說:「System.Web.UI.HtmlControls.HtmlTextArea」沒有包含'文本'的定義。 和代碼是:

this.Continut.Text.Length < 1? "Document":this.Continut.Text 

回答