PasswordRecovery.QuestionFailureText プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As PasswordRecovery Dim value As String value = instance.QuestionFailureText instance.QuestionFailureText = value
[LocalizableAttribute(true)] public: virtual property String^ QuestionFailureText { String^ get (); void set (String^ value); }
/** @property */ public String get_QuestionFailureText () /** @property */ public void set_QuestionFailureText (String value)
public function get QuestionFailureText () : String public function set QuestionFailureText (value : String)
パスワード回復用の確認質問に対するユーザーの解答が、Web サイトのデータ ストアに格納されている解答と一致しない場合に表示するテキスト。既定値は、"解答を確認できませんでした。もう一度やり直してください。" です。

QuestionFailureText プロパティには、パスワード回復用の確認質問への解答が Web サイトのデータ ストアに格納されている解答と一致しない場合に表示するエラー メッセージが格納されます。
FailureTextStyle プロパティのスタイル設定は、QuestionFailureText プロパティの外観を定義します。
テンプレートを使用して PasswordRecovery コントロールの外観を定義した場合、QuestionFailureText プロパティは、ID プロパティが "FailureText" に設定されたオプションの Literal コントロールに表示されます。
プロパティの既定のテキストは、サーバーのロケール設定に基づいてローカライズされます。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

QuestionFailureText プロパティを設定するコード例を次に示します。
<%@ Page Language="VB" %> <script runat="server"> ' Insert page code here ' </script> <html> <head> </head> <body> <form runat="server"> <asp:PasswordRecovery id="PasswordRecovery1" runat="server" GeneralFailureText="You password cannot be retrieved at this time. Please try again later." QuestionFailureText="Your answer does not match the stored answer. Please try again." UserNameFailureText="We couldn't find that user name. Please try again."> <FailureTextStyle backcolor="Red" forecolor="White"></FailureTextStyle> </asp:PasswordRecovery> <!-- Insert content here --> </form> </body> </html>
<%@ Page Language="C#" %> <script runat="server"> </script> <html> <head> </head> <body> <form runat="server"> <asp:PasswordRecovery id="PasswordRecovery1" runat="server" GeneralFailureText="You password cannot be retrieved at this time. Please try again later." QuestionFailureText="Your answer does not match the stored answer. Please try again." UserNameFailureText="We couldn't find that user name. Please try again."> <FailureTextStyle backcolor="Red" forecolor="White"></FailureTextStyle> </asp:PasswordRecovery> </form> </body> </html>

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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPasswordRecovery.QuestionFailureText プロパティを検索する場合は、下記のリンクをクリックしてください。

- PasswordRecovery.QuestionFailureText プロパティのページへのリンク