SqlDataSourceView::OnDeleting Method (SqlDataSourceCommandEventArgs^)
Raises the Deleting event before the SqlDataSource control attempts a delete operation.
Assembly: System.Web (in System.Web.dll)
Parameters
- e
-
Type:
System.Web.UI.WebControls::SqlDataSourceCommandEventArgs^
A SqlDataSourceCommandEventArgs that contains the event data.
Raising an event invokes the event handler through a delegate. For more information, see NIB: Consuming Events.
The OnDeleting 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 OnDeleting method in a derived class, be sure to call the OnDeleting method for the base class so that registered delegates receive the event.
Available since 2.0