System.Web.UI.WebControls.CreateUserWizard.RequireEmail Property

Gets or sets a value indicating whether an e-mail address is required for the Web site user.

Syntax

[System.Web.UI.Themeable(false)]
public virtual bool RequireEmail { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the CreateUserWizard.RequireEmail property is true, the System.Web.UI.WebControls.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 CreateUserWizard.EmailRequiredErrorMessage property will display an error message.

If the CreateUserWizard.RequireEmail property is set to true and you are using templated content, the CreateUserWizard.Email control is required and the System.Web.UI.WebControls.CreateUserWizard throws an exception if the CreateUserWizard.Email control is not found or is of the wrong type. If CreateUserWizard.RequireEmail is set to false, no exception is thrown if the CreateUserWizard.Email is not found. If it is of the wrong type, it is ignored.

Note:

If the membership provider specified in the CreateUserWizard.MembershipProvider property requires a unique e-mail address for new users, you must set the CreateUserWizard.RequireEmail property to true so that the UI for entering an e-mail address is displayed. Otherwise, the user will see the CreateUserWizard.EmailRequiredErrorMessage but have no way to enter an e-mail address.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

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