System.Web.UI.HtmlControls Namespace HtmlTextArea Class
Sets or retrieves the identifier name for the HtmlTextArea.
Inline |
<textarea name = strName ... > |
Script |
HtmlTextArea.Name [ = strName ] |
strName |
String specifying the identifier name for the HtmlTextArea. |
The property is read/write with no default value.
Use this property to identify a specific HtmlTextArea.
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, as described below.
When submitted with the form data, the value of the HtmlTextArea control is exposed on the server as
Request.Params [ textareaName ]
Request.Params ( textareaName ) |
|
C# |
VB |
Alternatively, when sent with a form using Post, the value of this property can be accessed using
Request.Form [ textareaName ]
Request.Form ( textareaName ) |
|
C# |
VB |
When sent with a form using Get, the value of this property can be accessed using
Request.QueryString [ textareaName ]
Request.QueryString ( textareaName ) |
|
C# |
VB |
NOTE: The control name is required only if you will use the Request collections to process the form data.
If not specified, this property returns the value of the UniqueID property.
HtmlTextArea Members Value Request.Params Request.Form Request.QueryString