asp.net.ph

HtmlTextArea Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <textarea> element on the server.

HtmlTextArea Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlTextArea ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Cols Int32 [ Get , Set ]
public Name String [ Get , Set ]
public Rows Int32 [ Get , Set ]
public Value String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddParsedSubObject ( Object obj ) Void
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected OnServerChange ( EventArgs e ) Void
protected RaisePostDataChangedEvent ( ) Void
protected RenderAttributes ( HtmlTextWriter writer ) Void

Collapse   Events

Multicast Name Type
multicast ServerChange EventHandler

Remarks

The HtmlTextArea control defines a scrollable multiline text input control wherein users can enter one or more lines of text.

<textarea> takes several properties, the more important of which are Name, Rows, and Cols.

As with other form controls, the Name attribute assigns the control a name.

The Rows property specifies the display height in number of visible lines, while the Cols property specifies the display width in number of visible characters.

To determine or specify the content of the <textarea>, use the Value property. Browsers render the content of the element if initially present, as shown.

<textarea> defaults to a fixed-pitch font, though CSS font styles may be applied with the Style attribute.

The HtmlTextArea class provides a ServerChange event that is raised when the Value of the text box changes between posts to the server. This allows you to define a custom handler to perform some action each time the event is raised.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlTextArea in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputText 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