/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class DisabledItemEventsScope : SPItemEventReceiver, IDisposable { bool oldValue; public DisabledItemEventsScope() { this.oldValue = base.EventFiringEnabled; base.EventFiringEnabled = false; } #region IDisposable Members public void Dispose() { base.EventFiringEnabled = oldValue; } #endregion }
URL: http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/