This documentation is archived and is not being maintained.

Login::LoginButtonType Property

Gets or sets the type of button to use when rendering the Login button.

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

public:
virtual property ButtonType LoginButtonType {
	ButtonType get ();
	void set (ButtonType value);
}
<asp:Login LoginButtonType="ButtonType" />

Property Value

Type: System.Web.UI.WebControls::ButtonType
One of the ButtonType enumeration values. The default is Button.

ExceptionCondition
ArgumentOutOfRangeException

The LoginButtonType property is not set to a valid ButtonType enumeration value.

The LoginButtonType property determines the type of button to use for the Login control's login button. The following table describes the different button types.

LoginButtonType setting

Type of button rendered

Button

An HTML button with the text specified in the LoginButtonText property.

Image

An image. The URL of the image is specified in the LoginButtonImageUrl property. The string specified in the LoginButtonText property is used as alternate text for the image.

Link

An HTML link with the text specified in the LoginButtonText property.

When the LoginButtonType property is set to Button or Link, the content of the LoginButtonImageUrl property is ignored.

The following code example shows the different types of login buttons available for the Login control.

Security noteSecurity Note:

This example contains a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: