Easy Tutorial
❮ Webpages Chart Aspnet Datalist ❯

ASP.NET TextBox Control



Definition and Usage

The TextBox control is used to create a text box where the user can input text.


Properties

Property Description .NET
AutoCompleteType Specifies the AutoComplete behavior for the TextBox control. 2.0
AutoPostBack Boolean value that specifies whether the control automatically posts back to the server when content changes. The default is false. 1.0
CausesValidation Specifies whether the page is validated when a Postback occurs. 2.0
Columns The width of the textbox. 1.0
MaxLength The maximum number of characters allowed in the textbox. 1.0
ReadOnly Specifies whether the text in the textbox can be changed. 1.0
Rows The height of the textbox (only used when TextMode="Multiline"). 1.0
runat Specifies whether the control is a server control. Must be set to "server".
TagKey
Text The content of the textbox. 1.0
TextMode Specifies the behavior mode of the TextBox (single-line, multi-line, or password). 1.0
ValidationGroup The group of controls validated when a Postback occurs.
Wrap Boolean value indicating whether the content of the textbox wraps. 1.0
OnTextChanged The name of the function executed when the text in the textbox is changed.

Web Control Standard Properties

For a complete description, visit Web Control Standard Properties.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Examples

Textbox

Textbox 2


❮ Webpages Chart Aspnet Datalist ❯