
890
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
and row-heights (Columns and Rows). This class also includes a single event, TextChanged,
which will fire only when the text box loses focus and a post back is generated.
The text box is abstracted away from any specific HTML element. Depending on your
settings, ASP.NET will use the appropriate <input type="text">, <input type="password">,or
<textarea> HTML tag.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ TextBox(System.Web.UI.
IPostBackDataHandler)
TextBoxControlBuilder
System.Web.UI.WebControls (system.web.dll)
class
The ASP.NET parser uses this class to generate HTML for any TextBox controls on a
requested Web Forms page. You will not need to use this class directly in application
code.
Hierarchy
System.Object ➝ System.Web.UI.ControlBuilder ➝ TextBoxControlBuilder
public class TextBox : WebControl, System.Web.UI.IPostBackDataHandler {
// Public Constructors
public TextBox();
// Public Instance Properties
public virtual bool AutoPostBack{set; get; }
public virtual int Columns{set; get; }
public virtual int MaxLength{set; get; }
public virtual bool ReadOnly ...