Performs an insert operation using the SqlDataSourceView.InsertCommand SQL string, any parameters that are specified in the SqlDataSourceView.InsertParameters collection, and the values that are in the specified values collection.
- values
An IDictionary of parameters for the SqlDataSourceView.InsertCommand property to use to perform the insert database operation. If there are no parameters associated with the query or if the SqlDataSourceView.InsertCommand is not a parameterized SQL query, pass null.
![]()
A value that represents the number of rows inserted into the underlying database.
The SqlDataSourceView.Insert(IDictionary) method calls the SqlDataSourceView.ExecuteInsert(IDictionary) method, passing the values parameter.