Name
HtmlInputText
Synopsis
This class represents the HTML <input type=text>
or <input type=password>
tag, which allow the user to enter a single line of text. If
you use the password type, the user’s input will be masked with the “*”
character for display purposes.
Text entered in this control is provided in the Value
property. You
can specify the width of the textbox by using the Size
property and
the maximum number of allowed characters by using MaxLength
. You can
also react to the ServerChange
event,
which will fire only after a postback is triggered (for example, when the user
clicks a submit button).
Public Class HtmlInputText : Inherits HtmlInputControl : Implements_ System.Web.UI.IPostBackDataHandler ' Public Constructors Public Sub New() Public Sub New(ByVal type As String) ' Public Instance Properties Public Property MaxLength As Integer Public Property Size As Integer Overrides Public Property Value As String ' Protected Instance Methods 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)→HtmlInputControl→ HtmlInputText(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.