Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to update data.
Assembly: System.Web (in System.Web.dll)
The ObjectDataSourceView object assumes that the method that is identified by the property performs updates one at a time, rather than in a batch.
The method 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 ObjectCreated event to work with the business object before the method specified by the property is called. You can also handle the ObjectDisposing event that is raised after the method 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.property is called. You can handle the
If the business object that the ObjectDataSource object works with 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 UpdateParameters collection. If the parameters in the UpdateParameters collection do not match those of the signature of the method specified by the property, the data source throws an exception.
For more information, see ObjectDataSource.UpdateMethod.
The value of theproperty is stored in view state.
The following code example demonstrates how to use a DropDownList control, TextBox controls, and several ObjectDataSource controls to update data. The DropDownList displays the name of a NorthwindEmployee, while the TextBox controls are used to enter and update address information. Because the UpdateParameters collection contains a ControlParameter object that is bound to the selected value of the DropDownList, the button that triggers the Update operation is enabled only after an employee is selected.
Available since 2.0