System.Web.UI.WebControls.ChangePassword.NewPasswordRegularExpressionErrorMessage Property

Gets or sets the error message that is shown when the password entered does not pass the regular expression criteria defined in the ChangePassword.NewPasswordRegularExpression property.

Syntax

public virtual string NewPasswordRegularExpressionErrorMessage { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ChangePassword.NewPasswordRegularExpressionErrorMessage property to inform the user that the password entered does not pass the regular expression defined in the ChangePassword.NewPasswordRegularExpression property.

The ChangePassword.NewPasswordRegularExpressionErrorMessage is not related to the password enforcement that can be configured at the data store level. The new password must meet the minimum requirements set by the membership provider in the System.Web.Security.Membership.MinRequiredPasswordLength, System.Web.Security.Membership.MinRequiredNonAlphanumericCharacters, and System.Web.Security.Membership.PasswordStrengthRegularExpression properties. If the password does not meet these requirements, the ChangePassword.ChangePasswordError event is raised.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0