Easy Tutorial
❮ Prop Webcontrol Table Horizontalalign Control Label ❯

ASP.NET TextBox TextMode Property



Definition and Usage

The TextMode property is used to set or return the behavior mode of the TextBox control.

Syntax

Property Description
mode One of the TextMode enumeration values. The default value is SingleLine. Possible values: SingleLine - Default. Represents single-line input mode.<br> MultiLine - Represents multi-line input mode.<br> Password - Represents password input mode.

Example

The following example sets the text mode of a TextBox control to "Password":


❮ Prop Webcontrol Table Horizontalalign Control Label ❯