Assembly: System.Web (in System.Web.dll)
Before the operation is performed, the OnInserting method is called to raise the Inserting event. You can handle the Inserting event to examine the values of the parameters and to perform any preprocessing before an operation. To perform an insert operation, the ObjectDataSourceView object uses reflection to create an instance of the object that is identified by the TypeName property. It then calls the method that is identified by the InsertMethod property, using any associated InsertParameters properties. After the operation completes, the OnInserted method is called to raise the Inserted event. You can handle the Inserted event to examine any return values, output parameters, and exceptions, and to perform any post-processing.
For more information about parameter merging, object lifetime, and method resolution, see InsertMethod.
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)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.