Exportar (0) Imprimir
Expandir Tudo
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original

Login.LoginButtonStyle Propriedade

Gets a reference to the Style object that allows you to set the appearance of the login button in the Login control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (em System.Web. dll)

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public Style LoginButtonStyle { get; }

Valor da propriedade

Tipo: System.Web.UI.WebControls.Style

A reference to a Style that represents the style of the login button.

Use the LoginButtonStyle property to control the appearance of the login button in the Login control.This property is read-only; however, you can set the properties of the Style object it returns.You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the Style class (for example, LoginButtonStyle-ForeColor).You can set the property programmatically in the form Property.Subproperty (for example, LoginButtonStyle.ForeColor).

As configurações comuns incluem Personalizar Cor do plano de fundo, propriedades de fonte e cor de texto.The LoginButtonStyle property defines the appearance of the login button.

The style settings for the LoginButtonStyle property are merged with the style settings for the Login control.Any settings made in the LoginButtonStyle property override the corresponding settings in properties of the Login control.

The following Login style properties are overridden by LoginButtonStyle settings:

When you use templates to define the appearance of the Login control, the LoginButtonStyle property has no effect.

The following code example uses the LoginButtonStyle property to define the appearance of the Login control login button.

<%@ Page Language= AutoEventWireup= %>

<!DOCTYPE html PUBLIC "-
    "http:
<script runat=>

    Page_Load(object sender, EventArgs e)
  {
    Login1.LoginButtonStyle.BorderWidth = Unit.Parse();
  }
</script>

<html xmlns="http:
  <head runat=>
    <title>ASP.NET Example</title>
</head>
<body>
    <form id= runat=>

      <asp:Login id= 
                 runat=>

        <LoginButtonStyle ForeColor= 
                          BackColor= />

      </asp:Login>

    </form>

  </body>

</html>


Contribuições da comunidade

ADICIONAR
Mostrar:
© 2015 Microsoft