asp.net.ph

HtmlTextArea.Value Property

System.Web.UI.HtmlControls Namespace   HtmlTextArea Class


Sets or retrieves the content of the text area.

Syntax


Inline <textarea value = strText ... >
Script HtmlTextArea.Value [ = strText ]

Property Value


strText String specifying the content of the text area.

The property is read/write with no default value.

Remarks

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.

Example

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 

See Also

HtmlTextArea Members   Name 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