PasswordRecovery.Question 屬性

定義

取得使用者在網站上建立的密碼復原確認問題。

public:
 property System::String ^ Question { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public string Question { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.Question : string
Public ReadOnly Property Question As String

屬性值

密碼復原確認問題。 預設值是 Empty

屬性

備註

屬性 Question 包含使用者先前在網站上建立的密碼復原確認問題。 屬性 Question 只會顯示在 [問題] 檢視中。 如果屬性中指定的 MembershipProvider 成員資格提供者不支援密碼問題和答案,則不會顯示 [問題] 檢視, Question 而且不會使用 屬性。

只有在使用者輸入有效的使用者名稱之後,成員資格提供者才會傳回問題。 在使用者輸入有效的使用者名稱之前, Question 屬性為 Empty

屬性中的 TextBoxStyle 樣式設定會定義 屬性的外觀 Question

當您使用 QuestionTemplate 屬性來定義 [問題] 檢視的外觀時,屬性會顯示在選擇性 Literal 控制項 ID 中, Question 且屬性設定為 「Question」。

這個屬性無法由佈景主題或樣式表主題設定。 如需詳細資訊,請參閱 ThemeableAttributeASP.NET 主題和麵板

適用於

另請參閱