asp.net.ph

TextBox Class

System.Web.UI.WebControls Namespace


Constructs a text box and defines its properties.

TextBox Class Members

Collapse   Constructors

Visibility Constructor Parameters
public TextBox ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public AutoCompleteType AutoCompleteType [ Get , Set ]
public AutoPostBack Boolean [ Get , Set ]
public CausesValidation Boolean [ Get , Set ]
public Columns Int32 [ Get , Set ]
public MaxLength Int32 [ Get , Set ]
public ReadOnly Boolean [ Get , Set ]
public Rows Int32 [ Get , Set ]
public Text String [ Get , Set ]
public TextMode TextBoxMode [ Get , Set ]
public ValidationGroup String [ Get , Set ]
public Wrap Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddAttributesToRender ( HtmlTextWriter writer ) Void
protected AddParsedSubObject ( Object obj ) Void
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected OnTextChanged ( EventArgs e ) Void
protected RaisePostDataChangedEvent ( ) Void
protected SaveViewState ( ) Object

Collapse   Events

Multicast Name Type
multicast TextChanged EventHandler

Remarks

The TextBox server control is an input control that lets the user enter text. By default, the TextMode of the text box is SingleLine, but it can be modified to be MultiLine or Password.

The display width of the text box is determined by its Columns property. If it is a multiline text box, its display height is determined by the Rows property.

The persistence of the Text property can be done either as an attribute or as the inner contents of the tag, regardless of the TextMode setting.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see TextBox in ASP.NET Syntax for Web Controls.

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph