System.Web.UI.DataSourceView.ExecuteInsert Method

Performs an insert operation on the list of data that the System.Web.UI.DataSourceView object represents.

Syntax

protected virtual int ExecuteInsert (IDictionary keys)

Parameters

keys
Documentation for this section has not yet been entered.

Returns

The number of items that were inserted into the underlying data storage.

Remarks

Data-bound controls can determine whether the DataSourceView.ExecuteInsert(IDictionary) operation is supported by a data source control by retrieving the System.Web.UI.DataSourceView object using the DataSourceControl.GetView(string) method, and checking the DataSourceView.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 System.Web.UI.DataSourceView class's default implementation is to throw a NotSupportedException exception. If you extend the System.Web.UI.DataSourceView class, override the DataSourceView.ExecuteInsert(IDictionary) method if your class supports insertion into the underlying data storage.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0