Wednesday, 1 February 2012

Overview:  CKSDev provides mutiple SPI for SharePoint, the Event Receiver SPI is very useful in saving me tome writing all the plumbing code.

Problem: While updating a custom list using my event receicer I am re-firing the event receiver for the item.

Initial HypothesisDisable the event firing as shown in this post.  This post applies to MOSS and the methods have been depreciated in SP2010.

Resolution: Disable the EventFiring
this.EventFiringEnabled = false;
// Perform update
this.EventFiringEnabled = true;


SB Chatterjee said...

Paul -
There is also the matter of asynchronous vs. synchronous execution of the event handling code. This post shows it more detail - Managing ItemUpdating and ItemUpdated Events:

Post a Comment