Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView object invokes to insert data.
Documentation for this section has not yet been entered.
The method that is identified by the ObjectDataSourceView.InsertMethod property can be an instance method or a static (Shared in Visual Basic) method. If it is an instance method, the business object is created and destroyed each time the method specified by the ObjectDataSourceView.InsertMethod property is called. You can handle the ObjectDataSourceView.ObjectCreated event to work with the business object before the method specified by the ObjectDataSourceView.InsertMethod property is called. You can also handle the ObjectDataSourceView.ObjectDisposing event that is raised after the method specified by the ObjectDataSourceView.InsertMethod property is called. (Dispose is called, only if the business object implements the IDisposable interface.) If the method is a static (Shared in Visual Basic) method, the business object is never created and you cannot handle these events.
If the business object that the System.Web.UI.WebControls.ObjectDataSource object implements more than one method or function with the same name (method overloads), the data source control attempts to invoke the correct one according to a set of conditions, including the parameters in the ObjectDataSourceView.InsertParameters collection. If the parameters in the ObjectDataSourceView.InsertParameters collection do not match those of the method specified by the ObjectDataSourceView.InsertMethod property signature, the data source throws an exception.
The value of the ObjectDataSourceView.InsertMethod property is stored in view state.
For more information, see ObjectDataSource.InsertMethod.