You can handle the Updated event to examine any return values, output parameters, and exceptions, and to perform any post-processing.The method delegates to the Update method of the Object Data Source View that is associated with the Object Data Source control.I will try adding the On Updating event and let you know. Check out the Form View, Grid View, and Details View. You can't do that with a Repeater control: it doesn't keep a copy of the objects to which it was bound. The second code example shows the class that is used in the first code example.The following code example demonstrates how to use a Drop Down List control, Text Box controls, and several Object Data Source controls to update data. operation is performed, the On Updating method is called to raise the Updating event.You can handle the Updating event to examine the values of the parameters and to perform any preprocessing before an operation completes, the On Updated method is called to raise the Updated event.
Because the This example has a text box that accepts user input, which is a potential security threat. NET Web pages validate that user input does not include script or HTML elements. Typically, this is used to modify the type of the data in the parameter.Finally, you can programmatically add and remove parameters in the Updating event, which occurs before the Update method is run.For more information about parameter merging, object lifetime, and method resolution, see This section contains two code examples.The first code example demonstrates how to use a Drop Down List control, Text Box controls, and several Object Data Source objects to update data.