PasswordRecovery.QuestionInstructionText プロパティ
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
パスワード回復用の確認質問に答えるようユーザーに指示するために、質問ビューに表示するテキストを取得または設定します。
名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文
Dim instance As PasswordRecovery Dim value As String value = instance.QuestionInstructionText instance.QuestionInstructionText = value
[LocalizableAttribute(true)] public: virtual property String^ QuestionInstructionText { String^ get (); void set (String^ value); }
/** @property */ public String get_QuestionInstructionText () /** @property */ public void set_QuestionInstructionText (String value)
public function get QuestionInstructionText () : String public function set QuestionInstructionText (value : String)
プロパティ値
質問ビューに表示する指示テキスト。既定値は、"パスワードを取得するために、次の質問に返答してください。" です。

QuestionInstructionText プロパティは、パスワード回復用の確認質問に答えるようユーザーに指示するために質問ビューに表示されます。
InstructionTextStyle プロパティのスタイル設定は、QuestionInstructionText プロパティの外観を定義します。
QuestionTemplate プロパティを使用して質問ビューの外観を定義した場合、QuestionInstructionText プロパティは無効になります。
プロパティの既定のテキストは、サーバーのロケール設定に基づいてローカライズされます。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

QuestionInstructionText プロパティを設定するコード例を次に示します。
<%@ page language="VB" %> <script runat="server"> Sub PasswordRecovery1_UserLookupError(ByVal sender As Object, ByVal e As System.EventArgs) PasswordRecovery1.UserNameInstructionText = "Enter the correct Web site user name." PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red End Sub Sub PasswordRecovery1_AnswerLookupError(ByVal sender As Object, ByVal e As System.EventArgs) PasswordRecovery1.QuestionInstructionText = "Enter the correct answer to this question." PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red End Sub </script> <html> <body> <form runat="server"> <asp:passwordrecovery id="PasswordRecovery1" runat="server" questioninstructiontext="Enter the answer to the password confirmation question." usernameinstructiontext="Enter your Web site user name." OnUserLookupError="PasswordRecovery1_UserLookupError" OnAnswerLookupError="PasswordRecovery1_AnswerLookupError"> <instructiontextstyle font-size="Smaller" font-names="Comic Sans MS" font-italic="True" forecolor="Blue"> </instructiontextstyle> </asp:passwordrecovery> </form> </body> </html>
<%@ page language="C#" %> <script runat="server"> void PasswordRecovery1_UserLookupError(object sender, EventArgs e) { PasswordRecovery1.UserNameInstructionText = "Enter the correct Web site user name."; PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red; } void PasswordRecovery1_AnswerLookupError(object sender, EventArgs e) { PasswordRecovery1.QuestionInstructionText = "Enter the correct answer to this question."; PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red; } </script> <html> <body> <form runat="server"> <asp:passwordrecovery id="PasswordRecovery1" runat="server" questioninstructiontext="Enter the answer to the password confirmation question." usernameinstructiontext="Enter your Web site user name." OnUserLookupError="PasswordRecovery1_UserLookupError" OnAnswerLookupError="PasswordRecovery1_AnswerLookupError"> <instructiontextstyle font-size="Smaller" font-names="Comic Sans MS" font-italic="True" forecolor="Blue"> </instructiontextstyle> </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.QuestionInstructionText プロパティを検索する場合は、下記のリンクをクリックしてください。

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