Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_RequireEmail () /** @property */ public void set_RequireEmail (boolean value)
public function get RequireEmail () : boolean public function set RequireEmail (value : boolean)
Property Valuetrue if an e-mail address is required; otherwise, false. The default value is true.
When the RequireEmail property is true, the CreateUserWizard will display a text box and an associated label for the user to enter an e-mail address. If the user does not enter an e-mail address, the EmailRequiredErrorMessage property will display an error message.
If the RequireEmail property is set to true and you are using templated content, the Email control is required and the CreateUserWizard throws an exception if the Email control is not found or is of the wrong type. If RequireEmail is set to false, no exception is thrown if the Email is not found. If it is of the wrong type, it is ignored.
If the membership provider specified in the MembershipProvider property requires a unique e-mail address for new users, you must set the RequireEmail property to true so that the UI for entering an e-mail address is displayed. Otherwise, the user will see the EmailRequiredErrorMessage but have no way to enter an e-mail address.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.