CreateUserWizard::PasswordRegularExpressionErrorMessage Property
Gets or sets the error message shown when the password entered does not conform to the site's password requirements.
Assembly: System.Web (in System.Web.dll)
public: property String^ PasswordRegularExpressionErrorMessage { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^The error message shown when the password entered does not pass the regular expression defined in the PasswordRegularExpression property. The default is "Please enter a different password." The default text for the control is localized based on the server's current locale.
Use the PasswordRegularExpressionErrorMessage property to inform the user that the password entered did not conform to the site's password requirements.
The following code example sets the PasswordRequiredErrorMessage property to explain to the user that the password entered does not meet the requirements of the regular expression contained in the PasswordRegularExpression property. To pass the regular expression, passwords must:
Be longer than six characters.
Contain at least one digit.
Contain at least one special (non-alphanumeric) character.
Available since 2.0