System.Web.UI.DataSourceView.Insert Method

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

Syntax

public virtual void Insert (IDictionary values, DataSourceViewOperationCallback callBack)

Parameters

callBack
Documentation for this section has not yet been entered.
values
An IDictionary of name/value pairs used during an insert operation.

Remarks

The DataSourceView.Insert(IDictionary, DataSourceViewOperationCallback) method is the asynchronous data insertion interface for all data source view objects. The DataSourceView.Insert(IDictionary, DataSourceViewOperationCallback) method calls the DataSourceView.ExecuteInsert(IDictionary) method using any values supplied. The callback parameter is a delegate that a data-bound control passes to the data source view, which is used to notify the data-bound control when the DataSourceView.ExecuteInsert(IDictionary) operation has completed. The method uses the parameters of the System.Web.UI.DataSourceViewOperationCallback delegate to return the number of affected records and any Exception exception that is thrown by the DataSourceView.ExecuteInsert(IDictionary) method call.

Requirements

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