Event itemupdating which

posted by | Leave a comment

The wording is curious here, so I thought I’d take some time to test each combination of common events such as Add, Update and Delete.

These were done across a custom list and then a document library.

When I click Update, I get the Item Updating event but not the Item Updated event, and the revisions are not written to the database.

event itemupdating which-61event itemupdating which-7event itemupdating which-21event itemupdating which-81

The columns from the sqldatasource display fine in the Details View and I can edit them.

In this scenario handling the Updating event of Linq Data Source would save you from handling same events for each Presentation control.

On the other hand using the event handler of the List View allows you control on the underlying presentation control.

In summary, my point of view is that for checking database values and doing operations on DB handling the Updating event of underlying datasource is better and for doing operations on Presentation control handling the Updating event of the underlying Presentation control would be better.

Same is true for other events like Inserting or Deleting.

Leave a Reply

Xxx rated webcams