TextBoxMode Enumeration
TOC
Collapse the table of content
Expand the table of content

TextBoxMode Enumeration

 

Specifies the behavior mode of the text box.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum TextBoxMode

Member nameDescription
Color

Date

Represents date entry mode.

DateTime

Represents date-time entry mode.

DateTimeLocal

Represents local date-time entry mode.

Email

Represents email address entry mode.

Month

Represents month entry mode.

MultiLine

Represents multiline entry mode.

Number

Represents number entry mode.

Password

Represents password entry mode.

Phone

Represents phone number entry mode.

Range

Represents numeric range entry mode.

Search

Represents search string entry mode.

SingleLine

Time

Represents time entry mode.

Url

Represents URL entry mode.

Week

Represents week entry mode.

The TextBoxMode enumeration represents the different display options for TextBox controls.

SingleLine mode displays the TextBox control as a single row. If the user enters text that exceeds the physical size of the TextBox control, the text will scroll horizontally.

MultiLine mode displays the height of the TextBox based on the Rows property, and allows data entry on multiple lines. 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, the text will scroll accordingly and scroll bars will appear.

The behavior of Password mode is similar to SingleLine mode except that all characters entered in the TextBox control are masked and are not saved in view state.

The remaining options correspond to type attribute values for the input element in the HTML5 specification.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft