Asp net objectdatasource updating event

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.The second code example shows the class that is used in the first code example.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.You can handle the Updated event to examine any return values, output parameters, and exceptions, and to perform any post-processing.I have had a problem with a gridview before but was able to solve that by adding Causes Validation = false to the definition, but detailsview does not have that.

This is a strong evidence of such a possible exception.

For the best practice or in the production phase, we should always make a clear separation between several layers of the application.

Page Zee, Your approach is only good for learning phase.

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.

event to examine the values of a return value or output parameters, or to determine whether an exception was thrown after an Update operation has completed.

809

Leave a Reply