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

Dim instance As PasswordRecovery Dim value As String value = instance.UserNameTitleText instance.UserNameTitleText = value
[LocalizableAttribute(true)] public: virtual property String^ UserNameTitleText { String^ get (); void set (String^ value); }
/** @property */ public String get_UserNameTitleText () /** @property */ public void set_UserNameTitleText (String value)
public function get UserNameTitleText () : String public function set UserNameTitleText (value : String)
ユーザー名ビューのタイトル。既定値は、"パスワードを忘れましたか?" です。

UserNameTitleText プロパティには、ユーザー名を入力するようユーザーに求めるユーザー名ビューのタイトルとして表示するテキストが格納されます。
TitleTextStyle プロパティのスタイル設定は、UserNameTitleText プロパティのテキストの外観を定義します。
UserNameTemplate プロパティを使用してユーザー名ビューの外観を定義した場合、UserNameTitleText プロパティは無効になります。
プロパティの既定のテキストは、サーバーのロケール設定に基づいてローカライズされます。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

UserNameTitleText プロパティを設定するコード例を次に示します。ユーザーが有効なユーザー名を入力しなかった場合、UserNameTitleText プロパティは UserLookupError イベントでリセットされます。
<%@ page language="VB" %> <script runat="server"> Sub PasswordRecovery1_UserLookupError(ByVal sender As Object, ByVal e As System.EventArgs) PasswordRecovery1.UserNameTitleText = "Try again" PasswordRecovery1.TitleTextStyle.ForeColor = System.Drawing.Color.Red End Sub Sub PasswordRecovery1_AnswerLookupError(ByVal sender As Object, ByVal e As System.EventArgs) PasswordRecovery1.QuestionTitleText = "Try again" PasswordRecovery1.TitleTextStyle.ForeColor = System.Drawing.Color.Red End Sub </script> <html> <body> <form runat="server"> <asp:passwordrecovery id="PasswordRecovery1" runat="server" questiontitletext="Password Confirmation Question" usernametitletext="Get a new password" OnUserLookupError="PasswordRecovery1_UserLookupError" OnAnswerLookupError="PasswordRecovery1_AnswerLookupError"> <titletextstyle font-names="Arial" font-bold="True" forecolor="White" backcolor="Gray"> </titletextstyle> </asp:passwordrecovery> </form> </body> </html>
<%@ page language="C#" %> <script runat="server"> void PasswordRecovery1_UserLookupError(object sender, EventArgs e) { PasswordRecovery1.UserNameTitleText = "Try again"; PasswordRecovery1.TitleTextStyle.ForeColor = System.Drawing.Color.Red; } void PasswordRecovery1_AnswerLookupError(object sender, EventArgs e) { PasswordRecovery1.QuestionTitleText = "Try again"; PasswordRecovery1.TitleTextStyle.ForeColor = System.Drawing.Color.Red; } </script> <html> <body> <form runat="server"> <asp:passwordrecovery id="PasswordRecovery1" runat="server" questiontitletext="Password Confirmation Question" usernametitletext="Get a new password" OnUserLookupError="PasswordRecovery1_UserLookupError" OnAnswerLookupError="PasswordRecovery1_AnswerLookupError"> <titletextstyle font-names="Arial" font-bold="True" forecolor="White" backcolor="Gray"> </titletextstyle> </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.UserNameTitleText プロパティを検索する場合は、下記のリンクをクリックしてください。

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