Export (0) Print
Expand All

PasswordRecovery::Question Property

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

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

[BrowsableAttribute(false)]
[ThemeableAttribute(false)]
public:
virtual property String^ Question {
	String^ get ();
	private: void set (String^ value);
}
<asp:PasswordRecovery Question="String" />

Property Value

Type: System::String
The password recovery confirmation question. The default value is Empty.

The Question property contains the password recovery confirmation question that the user previously established on the Web site. The Question property is displayed only in the Question view. If the membership provider specified in the MembershipProvider property does not support password question and answer, the Question view is not displayed and the 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 Question property is Empty.

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

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

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft