Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET HtmlTextArea Control

ASP.NET HtmlTextArea Control


HTML Server Controls HTML Server Controls


Definition and Usage

The HtmlTextArea control is used to control the


property

property Description
Attributes Returns all attribute name and value pairs of the element.
Cols The number of columns in the text area.
Disabled A Boolean value that indicates whether the control is disabled. The default is false.
id The unique id of the control.
InnerHtml Sets or returns the content between the opening and closing tags of this HTML element. Special characters are not automatically converted to HTML entities.
InnerText Sets or returns all text between the opening and closing tags of this HTML element. Special characters are automatically converted to HTML entities.
Name The unique name of the text area.
OnServerChange The name of the function executed when the content of the text area is modified.
Rows The number of visible rows in the text area.
runat Specifies that this control is a server control. Must be set to "server".
Style Sets or returns the CSS properties applied to this control.
TagName Returns the tag name of the element.
Value The value of the text area.
Visible A Boolean value that indicates whether the control is visible.

Example

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


HTML Server Controls HTML Server Controls