ObjectDataSourceView.Insert Method (IDictionary)
Performs an insert operation by calling the business object method that is identified by the InsertMethod property using the specified values collection.
Assembly: System.Web (in System.Web.dll)
Return ValueType: System.Int32
The number of rows inserted; otherwise, -1, if the number is not known.
The default return value is -1, which means that an unknown number of rows were inserted. To return a different value, set the AffectedRows property of the ObjectDataSourceStatusEventArgs object of the Inserted event. The number of affected rows is typically returned by the Insert method for the business object, and that value is available from the ReturnValue property of the ObjectDataSourceStatusEventArgs object of the Inserted event.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)