System.Web.UI.WebControls.TextBox.TextMode Property

Gets or sets the behavior mode (single-line, multiline, or password) of the System.Web.UI.WebControls.TextBox control.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.TextBoxMode.SingleLine)]
public virtual TextBoxMode TextMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TextBox.TextMode property to specify whether a System.Web.UI.WebControls.TextBox control is displayed as a single-line, multiline, or password text box.

When the System.Web.UI.WebControls.TextBox control is in multiline mode, you can control the number of rows displayed by setting the TextBox.Rows property. You can also specify whether the text should wrap by setting the TextBox.Wrap property.

If the System.Web.UI.WebControls.TextBox control is in password mode, all characters entered in the control are masked.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0