CreateUserWizard::EmailRegularExpression Property
Gets or sets a regular expression used to validate the provided e-mail address.
Assembly: System.Web (in System.Web.dll)
public: property String^ EmailRegularExpression { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^A string containing the regular expression used to validate an e-mail address. The default value is an empty string ("").
Use the 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 MembershipProvider property. If the membership provider rejects the e-mail address for any reason, the text contained in the InvalidEmailErrorMessage property is displayed.
The address is only compared to the regular expression if the RequireEmail property is set to true.
If the e-mail address does not pass the regular expression, the text contained in the EmailRegularExpressionErrorMessage property is displayed to the user.
Available since 2.0