System.Web.UI.DataSourceView.Update Method

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

Syntax

public virtual void Update (IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callBack)

Parameters

callBack
Documentation for this section has not yet been entered.
keys
An IDictionary of object or row keys to be updated by the update operation.
values
An IDictionary of name/value pairs that represent data elements and their new values.
oldValues
An IDictionary of name/value pairs that represent data elements and their original values.

Remarks

The DataSourceView.Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) method is the asynchronous data modification interface for all data source view objects. The DataSourceView.Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) method calls the DataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary) method using any keys, values, and oldValues parameter 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.ExecuteUpdate(IDictionary, IDictionary, 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.ExecuteUpdate(IDictionary, IDictionary, IDictionary) call.

Requirements

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