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 Value

Type: System.String

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.

Button

Text appears on the button.

Image

Text appears as alternative text for the image.

Link

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.

.NET Framework
Available since 2.0
Return to top
Show: