System.Web.UI.WebControls Namespace
Constructs a text box and defines its properties.
Visibility |
Constructor |
Parameters |
public |
TextBox |
( )
|
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 ] |
|
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.