Name
HtmlTextArea
Synopsis
This class represents the HTML <textarea>
tag, which allows the user to
enter multiple lines of text. Text entered in this control is provided in the Value
property. You
can specify the size of the text box by using the Rows
property and the Cols
property (the
character width). Both default to -1 to indicate that a standard size will be
used. You can also react to the ServerChange
event,
which will fire only after a postback is triggered (for example, when a user
clicks a submit button).
Public Class HtmlTextArea : Inherits HtmlContainerControl : Implements_ System.Web.UI.IPostBackDataHandler ' Public Constructors Public Sub New() ' Public Instance Properties Public Property Cols As Integer Overridable Public Property Name As String Public Property Rows As Integer Public Property Value As String ' Protected Instance Methods Overrides Protected Sub AddParsedSubObject( ByVal obj As Object) Overrides Protected Sub OnPreRender(ByVal e As EventArgs) Overridable Protected Sub OnServerChange( ByVal e As EventArgs) Overrides Protected Sub RenderAttributes( ByVal writer As System.Web.UI.HtmlTextWriter) ' Events Public Event ServerChange As EventHandler End Class
Hierarchy
System.Object→ System.Web.UI.Control(System.ComponentModel.IComponent
, System.IDisposable
, System.Web.UI.IParserAccessor
, System.Web.UI.IDataBindingsAccessor)→HtmlControl(System.Web.UI.IAttributeAccessor)→HtmlContainerControl→ HtmlTextArea(System.Web.UI.IPostBackDataHandler)
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.