asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlTextArea Server Control

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

The HtmlTextArea control <textarea runat=server> defines a multiline text input control wherein users can enter one or more lines of text.

The number of lines ( height ) and the number of characters per line ( width ) ( that the <textarea> can accommodate without scrolling ) can be specified with the rows and cols attribute, respectively.

Scrollbars appear in the <textarea> if the text exceeds the number of specified rows or columns.

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

The following sample illustrates using the HtmlTextArea control.

Retrieving the Value of an HtmlTextArea Control
Run Sample | View Source
See Also

HtmlTextArea Control Syntax   TextBox Web Server Control   HTML HTMLAREA Element


Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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