Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET TextBox TextMode Property

ASP.NET TextBox TextMode Property


TextBox control TextBox Control


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. Indicates single-line input mode.
  • MultiLine - Indicates multi-line input mode.
  • Password - Indicates password input mode.
  • |

    Example

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

    Demo Example »


    TextBox control TextBox Control