DataSourceView.ExecuteDelete Method (IDictionary, IDictionary)
Performs a delete operation on the list of data that the DataSourceView object represents.
Assembly: System.Web (in System.Web.dll)
An IDictionary of object or row keys to be deleted by the operation.
Return ValueType: System.Int32
The number of items that were deleted from the underlying data storage.
The keys parameter represents the object or row keys of the data to delete. For data sources that represent relational data, such as the SqlDataSource control, the keys parameter is a collection of database primary keys. In other scenarios, the keys parameter is a collection of name/value pairs and is used to filter a list of data. Any data matching a name/value pair is deleted.
The following code example demonstrates how a class that extends the DataSourceView class can override the CanDelete property and the method. This code example is part of a larger example provided for the DataSourceView class.
Available since 2.0