CreateUserWizard.PasswordRegularExpressionErrorMessage Property

 

Gets or sets the error message shown when the password entered does not conform to the site's password requirements.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract PasswordRegularExpressionErrorMessage : string with get, set
override PasswordRegularExpressionErrorMessage : string with get, set

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: