Occurs before a ObjectDataSource.Delete operation.
Handle the ObjectDataSource.Deleting event to perform additional initialization that is specific to your application, to validate the values of parameters, or to change the parameter values before the System.Web.UI.WebControls.ObjectDataSource control performs the delete operation. The parameters are available as an IDictionary collection that is accessed by the ObjectDataSourceMethodEventArgs.InputParameters property, which is exposed by the System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs object.
You can cancel the delete operation by setting the Microsoft.Win32.SessionEndingEventArgs.Cancel property of the System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs to true.
For more information about handling events, see Consuming Events.