System.Web.UI.WebControls.PasswordRecovery.Question Property

Gets the password recovery confirmation question established by the user on the Web site.

Syntax

[System.Web.UI.Themeable(false)]
public virtual string Question { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The PasswordRecovery.Question property contains the password recovery confirmation question that the user previously established on the Web site. The PasswordRecovery.Question property is displayed only in the Question view. If the membership provider specified in the PasswordRecovery.MembershipProvider property does not support password question and answer, the Question view is not displayed and the PasswordRecovery.Question property is not used.

The membership provider returns the question only after the user enters a valid user name. Until the user enters a valid user name, the PasswordRecovery.Question property is string.Empty.

The style settings in the PasswordRecovery.TextBoxStyle property define the appearance of the PasswordRecovery.Question property.

When you use the PasswordRecovery.QuestionTemplate property to define the appearance of the Question view, the PasswordRecovery.Question property is displayed in an optional System.Web.UI.WebControls.Literal control with the System.Web.UI.Control.ID property set to "Question".

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