DataSourceView.ExecuteInsert Method
.NET Framework 2.0
Performs an insert operation on the list of data that the DataSourceView object represents.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
protected int ExecuteInsert ( IDictionary values )
protected function ExecuteInsert ( values : IDictionary ) : int
Not applicable.
Parameters
- values
An IDictionary of name/value pairs used during an insert operation.
Return Value
The number of items that were inserted into the underlying data storage.Data-bound controls can determine whether the ExecuteInsert operation is supported by a data source control by retrieving the DataSourceView object using the GetView method, and checking the CanInsert property.
The values parameter is a set of name/value pairs that represents data columns or fields and corresponding values to insert.
Note: |
|---|
|
The DataSourceView class's default implementation is to throw a NotSupportedException exception. If you extend the DataSourceView class, override the ExecuteInsert method if your class supports insertion into the underlying data storage. |
Community Additions
ADD
Show:
Note: