This documentation is archived and is not being maintained.
LinqDataSource::Insert Method
Visual Studio 2008
Performs an insert operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- values
- Type: System.Collections::IDictionary
The row values to be inserted into the data source.
The following example shows how to programmatically insert a new record in the data source after the user clicks a button. The code passes a ListDictionary object that contains default values to the Insert 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.
Show: