Login.LoginButtonText Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the text for the Login control's login button.

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

[LocalizableAttribute(true)] 
public:
virtual property String^ LoginButtonText {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_LoginButtonText ()

/** @property */
public void set_LoginButtonText (String value)

public function get LoginButtonText () : String

public function set LoginButtonText (value : String)

Property Value

The text used for the Login control's login button. The default is "Login".

The LoginButtonText property contains the text displayed for the Login control's login button. Depending on the value of the LoginButtonType property, the LoginButtonText property can appear as text on a button, as text displayed as an alternative to an image in browsers that do not render images, or as the text of a link. The following table describes how the different LoginButtonType values affect the LoginButtonText property.

LoginButtonType setting

How the LoginButtonText property is used.

Button

As the button's Text property.

Image

As alternative text for the image.

Link

As link text.

The default text for the control is localized based on the server's current locale.

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 shows how the text in the LoginButtonText property is affected by the value of the LoginButtonType property.

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

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: