Login.InstructionText Propriedade
Definição
Obtém ou define o texto de instrução de logon para o usuário.Gets or sets login instruction text for the user.
public:
virtual property System::String ^ InstructionText { System::String ^ get(); void set(System::String ^ value); };
public virtual string InstructionText { get; set; }
member this.InstructionText : string with get, set
Public Overridable Property InstructionText As String
Valor da propriedade
O texto de instrução de logon a ser exibido para o usuário.The login instruction text to display to the user. O padrão é Empty.The default is Empty.
Exemplos
O exemplo de código a seguir usa a InstructionText propriedade para inserir o texto de instrução no Login controle.The following code example uses the InstructionText property to insert instruction text in the Login control.
<%@ Page Language="C#" AutoEventWireup="False"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" 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="VB" AutoEventWireup="False"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" 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>
Comentários
A InstructionText propriedade contém instruções para usuários que fazem logon no site.The InstructionText property contains instructions for users logging in to the Web site. Esse texto é exibido no Login controle, seguindo o título.This text is displayed in the Login control, following the title.
Se a InstructionText propriedade for definida como Empty , nenhum texto de instrução estará disponível para o usuário.If the InstructionText property is set to Empty, no instruction text is available to the user.
O valor dessa propriedade, quando definido, pode ser salvo automaticamente em um arquivo de recurso usando uma ferramenta de designer.The value of this property, when set, can be saved automatically to a resource file by using a designer tool. Para obter mais informações, consulte, LocalizableAttribute globalização e localização.For more information, see LocalizableAttribute and Globalization and Localization.