Wizard.OnCancelButtonClick Method (EventArgs)

 

Raises the CancelButtonClick event.

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

abstract OnCancelButtonClick : 
        e:EventArgs -> unit
override OnCancelButtonClick : 
        e:EventArgs -> unit

Parameters

e
Type: System.EventArgs

An EventArgs containing the event data.

The CancelButtonClick event is raised when the Cancel button is clicked.

Raising an event invokes the event handler through a delegate. For more information, see NIB: Raising an Event.

The OnCancelButtonClick method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors:

When overriding the OnCancelButtonClick method in a derived class, be sure to call the OnCancelButtonClick method of the base class so that registered delegates receive the event.

The following code example demonstrates how to specify an event handler for the CancelButtonClick event. When the Cancel button is clicked, the step is redirected to http://www.wingtiptoys.com/.

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

.NET Framework
Available since 2.0
Return to top
Show: