Skip to main content
A newer version of this page is available. .
Tab

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; }

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.

Example

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