asp.net.ph

HtmlTextArea.Name Property

System.Web.UI.HtmlControls Namespace   HtmlTextArea Class


Sets or retrieves the identifier name for the HtmlTextArea.

Syntax


Inline <textarea name = strName ... >
Script HtmlTextArea.Name [ = strName ]

Property Value


strName String specifying the identifier name for the HtmlTextArea.

The property is read/write with no default value.

Remarks

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 ] 
  C# VB

Alternatively, when sent with a form using Post, the value of this property can be accessed using

Request.Form [ textareaName ] 
  C# VB

When sent with a form using Get, the value of this property can be accessed using

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.

See Also

HtmlTextArea Members   Value   Request.Params   Request.Form   Request.QueryString Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph