Tab
A newer version of this page is available. Switch to the current version.

TextBoxPropertiesBase.Password Property

Gets or sets a value that specifies whether the input is treated as a password and all characters entered into the editor are masked.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public virtual bool Password { get; set; }
<DefaultValue(False)>
Public Overridable Property Password As Boolean

Property Value

Type Default Description
Boolean

false

true if the editor's characters are masked; otherwise, false.

Remarks

If this property is set to true, all characters entered in the editor are masked and are not saved in view state. A bullet (a filled circle shape) is used to mask the editor's characters.

NOTE

The Password property synchronizes its value with the editor's ASPxTextBoxBase.Password property.

Examples

The complete sample project is available in the DevExpress Code Central database at E942.

function OnValidationCompleted(s, e) {
                if(e.isValid && Password.GetValue() != ConfirmedPassword.GetValue()) {
                    ConfirmedPassword.SetFocus();
                    ErrorMessageNotEqual.SetVisible(true);
                    e.isValid = false;
                } else
                    ErrorMessageNotEqual.SetVisible(false);
            }
See Also