CreateUserWizard.EmailRegularExpressionErrorMessage Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the error message displayed when the entered e-mail address does not pass the site's criteria for e-mail addresses.

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

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

Property Value

Type: System.String

The error message displayed when the entered e-mail address does not pass the regular expression defined in the EmailRegularExpression property. The default is "Please enter a different e-mail address." The default text for the control is localized based on the server's current locale.

Use the EmailRegularExpressionErrorMessage property to inform the user that the e-mail address entered did not pass the site's criteria for e-mail addresses.

The following code example assigns an error message to the EmailRegularExpressionErrorMessage property to indicate to users that the e-mail address is not in a valid format.

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

.NET Framework
Available since 2.0
Return to top
Show: