PasswordRecovery.UserNameInstructionText プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PasswordRecovery.UserNameInstructionText プロパティの意味・解説 

PasswordRecovery.UserNameInstructionText プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ユーザー名入力するようユーザー指示するために、PasswordRecovery コントロールユーザー名ビュー表示するテキスト取得または設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Overridable Property
 UserNameInstructionText As String
Dim instance As PasswordRecovery
Dim value As String

value = instance.UserNameInstructionText

instance.UserNameInstructionText = value
[LocalizableAttribute(true)] 
public virtual string UserNameInstructionText
 { get; set; }
[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 プロパティを "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>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

PasswordRecovery.UserNameInstructionText プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PasswordRecovery.UserNameInstructionText プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS