Wizard::OnCancelButtonClick Method (EventArgs^)
Raises the CancelButtonClick event.
Assembly: System.Web (in System.Web.dll)
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/.
Available since 2.0