System.Web.UI.WebControls Namespace
Specifies the behavior mode of a TextBox control.
Member Name |
Description |
SingleLine |
Renders the TextBox in single-line entry mode. |
MultiLine |
Renders the TextBox in multiple-line entry mode. |
Password |
Renders the TextBox in password entry mode. |
The TextBoxMode enumeration represents the possible display options for TextBox controls.
In SingleLine mode, if the user enters text that exceeds the physical size of the TextBox, the text will scroll left.
In MultiLine mode, the displayed height of the TextBox can be specified using the Rows property, and the text will automatically wrap if the Wrap property is set to true. If the user enters text that exceeds the physical size of the TextBox, scroll bars are provided accordingly.
Password mode is identical to SingleLine mode except all characters entered into the TextBox are masked.