Login.InstructionText プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文
Dim instance As Login Dim value As String value = instance.InstructionText instance.InstructionText = value
[LocalizableAttribute(true)] public: virtual property String^ InstructionText { String^ get (); void set (String^ value); }
/** @property */ public String get_InstructionText () /** @property */ public void set_InstructionText (String value)
public function get InstructionText () : String public function set InstructionText (value : String)
ユーザーに表示するログインの指示テキスト。既定値は Empty です。
InstructionText プロパティには、Web サイトにログインするユーザーへの指示が格納されます。このテキストは、タイトルに続いて Login コントロールに表示されます。
InstructionText プロパティを Empty に設定した場合、ユーザーは指示テキストを利用できません。
このプロパティを設定している場合、デザイナ ツールを使用して、その値を自動的にリソース ファイルに保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。
InstructionText プロパティを使用して、Login コントロールに指示テキストを挿入するコード例を次に示します。
<%@ Page Language="VB" AutoEventWireup="False"%> <html> <head> </head> <body> <form runat="server"> <asp:Login id="Login1" runat="server" InstructionText="Enter your user name and password to log in."> <InstructionTextStyle Font-Bold="True" ForeColor="#E0E0E0" BackColor="Gray"></InstructionTextStyle> </asp:Login> </form> </body> </html>
<%@ Page Language="C#" AutoEventWireup="False"%> <html> <head> </head> <body> <form runat="server"> <asp:Login id="Login1" runat="server" InstructionText="Enter your user name and password to log in."> <InstructionTextStyle Font-Bold="True" ForeColor="#E0E0E0" BackColor="Gray"></InstructionTextStyle> </asp:Login> </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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- Login.InstructionText プロパティのページへのリンク