
726
|
Chapter 39: The System.Web.UI.HtmlControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
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 ➝ HtmlInputRa-
dioButton(System.Web.UI.IPostBackDataHandler)
HtmlInputText
System.Web.UI.HtmlControls (system.web.dll)
disposable
class
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 charac-
ters 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).
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 ➝ HtmlInput-
Text(System.Web.UI.IPostBackDataHandler) ...