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

Dim instance As PasswordRecovery Dim value As String value = instance.AnswerLabelText instance.AnswerLabelText = value
[LocalizableAttribute(true)] public: virtual property String^ AnswerLabelText { String^ get (); void set (String^ value); }
/** @property */ public String get_AnswerLabelText () /** @property */ public void set_AnswerLabelText (String value)
public function get AnswerLabelText () : String public function set AnswerLabelText (value : String)
パスワードの確認解答ボックスのラベル。既定値は "返答:" です。

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

AnswerLabelText プロパティを文字列 "Your answer:" に設定するコード例を次に示します。
<%@ Page Language="VB" %> <html> <head> </head> <body> <form runat="server"> <asp:PasswordRecovery id="PasswordRecovery1" runat="server" UserNameLabelText="Your user name:" QuestionLabelText="Answer this question:" AnswerLabelText="Your answer:"> <LabelStyle font-bold="True" forecolor="White" backcolor="Navy"> </LabelStyle> </asp:PasswordRecovery> </form> </body> </html>
<%@ Page Language="C#" %> <html> <head> </head> <body> <form runat="server"> <asp:PasswordRecovery id="PasswordRecovery1" runat="server" AnswerLabelText="Your answer:" QuestionLabelText="Answer this question:" UserNameLabelText="Your user name:"> <LabelStyle font-bold="True" forecolor="White" backcolor="Navy"> </LabelStyle> </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.AnswerLabelText プロパティを検索する場合は、下記のリンクをクリックしてください。

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