Wizard.CancelButtonText Property

Gets or sets the text caption that is displayed for the Cancel button.

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

public virtual string CancelButtonText { get; set; }
/** @property */
public String get_CancelButtonText ()

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

public function get CancelButtonText () : String

public function set CancelButtonText (value : String)

Not applicable.

Property Value

The text caption displayed for Cancel on the Wizard. The default is "Cancel". The default text for the control is localized based on the current locale for the server.

The CancelButtonText property contains the text that is displayed for the Cancel button on the Wizard control. Depending on the value of the CancelButtonType property, the CancelButtonText property can appear as text on a button, as text displayed as an alternative to an image, or as the text of a link. The following table lists the CancelButtonType values and their respective effects on the Cancel button text.


Text appears on the button.


Text appears as alternative text for the image.


Text appears as a link.

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0