Login.InstructionText Property
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_InstructionText () /** @property */ public void set_InstructionText (String value)
public function get InstructionText () : String public function set InstructionText (value : String)
Property Value
The login instruction text to display to the user. The default is Empty.The InstructionText property contains instructions for users logging in to the Web site. This text is displayed in the Login control, following the title.
If the InstructionText property is set to Empty, no instruction text is available to the user.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
The following code example uses the InstructionText property to insert instruction text in the Login control.
<%@ 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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.