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

Dim instance As PasswordRecovery Dim value As String value = instance.UserNameInstructionText instance.UserNameInstructionText = value
[LocalizableAttribute(true)] public: virtual property String^ UserNameInstructionText { String^ get (); void set (String^ value); }
/** @property */ public String get_UserNameInstructionText () /** @property */ public void set_UserNameInstructionText (String value)
public function get UserNameInstructionText () : String public function set UserNameInstructionText (value : String)
ユーザー名ビューに表示する指示テキスト。既定値は、"パスワードを取得するために、ユーザー名を入力します。" です。

UserNameInstructionText プロパティはユーザー名ビューに表示され、PasswordRecovery コントロールの使用方法をユーザーに示します。
InstructionTextStyle プロパティのスタイル設定は、UserNameInstructionText プロパティのテキストの外観を定義します。
UserNameTemplate プロパティに割り当てられたテンプレートを使用した場合、UserNameInstructionText プロパティは表示されません。
プロパティの既定のテキストは、サーバーのロケール設定に基づいてローカライズされます。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

UserNameInstructionText プロパティを "Enter your Web site user name." に設定するコード例を次に示します。
<%@ 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.UserNameInstructionText プロパティを検索する場合は、下記のリンクをクリックしてください。

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