This documentation is archived and is not being maintained.

CreateUserWizard.QuestionAndAnswerRequired Property

Note: This property is new in the .NET Framework version 2.0.

Gets a value indicating whether the user is required to enter a password confirmation question and answer.

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

protected internal bool QuestionAndAnswerRequired { get; }
/** @property */
protected boolean get_QuestionAndAnswerRequired ()

protected internal function get QuestionAndAnswerRequired () : boolean

Property Value

true if the user is required to enter a password confirmation question and answer; otherwise, false. The default value is true.

The QuestionAndAnswerRequired property returns a value from the membership provider set in the MembershipProvider property specifying whether the user is required to enter a password confirmation question and answer.

If a Membership provider requires a question and answer, the Question and Answer controls are required and the CreateUserWizard throws an exception if they are not found or of the wrong type. If they are not required by the Membership provider, no exception is thrown if they are not found, and if they are of the wrong type they are ignored.

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.

.NET Framework

Supported in: 2.0
Show: