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

Dim instance As PasswordRecovery Dim value As String value = instance.UserNameFailureText instance.UserNameFailureText = value
[LocalizableAttribute(true)] public: virtual property String^ UserNameFailureText { String^ get (); void set (String^ value); }
/** @property */ public String get_UserNameFailureText () /** @property */ public void set_UserNameFailureText (String value)
public function get UserNameFailureText () : String public function set UserNameFailureText (value : String)
ユーザーが入力したユーザー名が Web サイトの有効なユーザー名ではない場合に表示するテキスト。既定値は、"個人情報にアクセスできませんでした。もう一度やり直してください。" です。

UserNameFailureText プロパティには、MembershipProvider プロパティで定義されたメンバシップ プロバイダが認識しないユーザー名をユーザーが入力したときに表示するエラー メッセージが格納されます。
FailureTextStyle プロパティのスタイル設定は、UserNameFailureText プロパティのテキストの外観を定義します。
UserNameTemplate プロパティにテンプレートを割り当てた場合、UserNameFailureText プロパティは、ID プロパティが "FailureText" に設定されたオプションの Literal コントロールに表示されます。
プロパティの既定のテキストは、サーバーのロケール設定に基づいてローカライズされます。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

UserNameFailureText プロパティを設定するコード例を次に示します。設定値は "We couldn't find that user name.Please try again." です。
<%@ 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.UserNameFailureText プロパティを検索する場合は、下記のリンクをクリックしてください。

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