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