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

Dim instance As PasswordRecovery Dim value As String value = instance.QuestionTitleText instance.QuestionTitleText = value
[LocalizableAttribute(true)] public: virtual property String^ QuestionTitleText { String^ get (); void set (String^ value); }
/** @property */ public String get_QuestionTitleText () /** @property */ public void set_QuestionTitleText (String value)
public function get QuestionTitleText () : String public function set QuestionTitleText (value : String)
質問ビューのタイトル。既定値は、"ID の確認" です。

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

QuestionTitleText プロパティを設定するコード例を次に示します。ユーザーが有効なユーザー名を入力しなかった場合、QuestionTitleText プロパティは AnswerLookupError イベントでリセットされます。
<%@ 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.QuestionTitleText プロパティを検索する場合は、下記のリンクをクリックしてください。

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