System.Web.UI.WebControls.CreateUserWizard.EmailRegularExpression Property

Gets or sets a regular expression used to validate the provided e-mail address.

Syntax

public virtual string EmailRegularExpression { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the CreateUserWizard.EmailRegularExpression property to specify a regular expression that validates the e-mail address entered by the user to confirm that it matches a specific pattern. A common use is to make sure that the user has entered a complete e-mail address, such as user@contoso.com. The regular expression is used in addition to any restrictions placed on the e-mail address by the membership provider specified in the CreateUserWizard.MembershipProvider property. If the membership provider rejects the e-mail address for any reason, the text contained in the CreateUserWizard.InvalidEmailErrorMessage property is displayed.

The address is only compared to the regular expression if the CreateUserWizard.RequireEmail property is set to true.

If the e-mail address does not pass the regular expression, the text contained in the CreateUserWizard.EmailRegularExpressionErrorMessage property is displayed to the user.

Requirements

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