LinqDataSource::Update Method
Performs an update operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- keys
- Type: System.Collections::IDictionary
The row key values for the records to be updated.
- values
- Type: System.Collections::IDictionary
The row values to be updated in the data source.
- oldValues
- Type: System.Collections::IDictionary
The row values that are evaluated to detect data conflicts.
The following example shows how to programmatically update a record in the data source after the user clicks a button. The code passes a ListDictionary object that contains the key value, a ListDictionary object that contains the original values, and a ListDictionary object that contains the new values to the Update method.
The following example shows the markup for the previous example.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.