System.Web.UI.HtmlControls Namespace HtmlTextArea Class
Sets or retrieves the content of the text area.
Inline |
<textarea value = strText ... > |
Script |
HtmlTextArea.Value [ = strText ] |
strText |
String specifying the content of the text area. |
The property is read/write with no default value.
Use the Value property to programmatically control the text entered in the HtmlTextArea control.
This property is commonly used to retrieve the text entered in the text box, but can also be used to specify the text to display in the control. This is useful if you want to provide an initial value or display a message in the HtmlTextArea control.
To be submitted with the data associated with a <form>, each of the form input controls must have a Name and a valid Value. Only controls with a valid name/value pair are sent with the HTTP Request message to the receiving program for processing.
These name/value pairs are then accessible on the server via the Request.Params, Request.Form, or Request.QueryString collections.
The following example demonstrates how to use the Value property to determine the contents of the HtmlTextArea control. In this sample, the contents are simply displayed on the page.
Show me
This example retrieves the content of an HtmlTextArea submitted with a form using POST, by looping thru the Request.Form collection.
Show me
This example retrieves the content of an HtmlTextArea submitted with a form using GET, by looping thru the Request.QueryString collection.
Show me
HtmlTextArea Members Name