Latest web development tutorials

ASP.NET HtmlTextArea Controls

HTML Server Controls HTML server controls

Definition and Usage

HtmlTextArea control for controlling the <textarea> element. In HTML, <textarea> element is used to create a text field.


Attributes

属性 描述
Attributes 返回该元素的所有属性名称和值对。
Cols 文本域的列数。
Disabled 布尔值,指示是否禁用该控件。默认是 false。
id 控件的唯一 id。
InnerHtml 设置或返回该 HTML 元素的开始标签和结束标签之间的内容。殊字符不会被自动转换为 HTML 实体。
InnerText 设置或返回该 HTML 元素的开始标签和结束标签之间的所有文本。特殊字符会被自动转换为 HTML 实体。
Name 文本域的唯一名称。
OnServerChange 当该文本域的内容被修改时被执行的函数的名称。
Rows 文本域的可见行数。
runat 规定该控件是一个服务器控件。必须被设置为 "server"。
Style 设置或返回被应用到该控件的 CSS 属性。
TagName 返回元素的标签名。
Value 文本域的值。
Visible 布尔值,指示该控件是否可见。


Examples

HTMLTextarea
In this example, we declare a HtmlTextarea control in an .aspx file, a HtmlInputButton control, and one HtmlGeneric control. When the submit button is triggered, the submit subroutine. The submit subroutine sends the message to the p element "You wrote:" in the text box and text user input.


HTML Server Controls HTML server controls