SharePoint Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2234 Page Views: 

If you have an ItemUpdated or ItemUpdating event receiver and it causes an update to the item, how do you prevent another ItemUpdated and ItemUpdating event from being fired during your update?



Posted By: Avi Date: 3 September 2009 05:44:26 AM
 Answer:

Before performing update, call DisableEventFiring() method and after update, call EnableEventFiring() method.


Posted By: eTechPlanet


Date: 3 September 2009 05:44:26 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image c0X8yc
Related Questions
SharePoint : You created a SharePoint List Definition. Now you need to add a new view to this List Definition. Which file you will modify?
SharePoint : What is the difference between SPFile and PublishingPage Class?

What is the difference between SPFile and PublishingPage Class?

PublishingPage class is used to represent pages authored by end-users in a publishing site. It has ....
Category: SharePoint Date: 7/1/2010 11:56:55 AM
SharePoint : Which base class we have to inherit to develop a custom web part for SharePoint 2007?

Which base class we have to inherit to develop a custom web part for SharePoint 2007?

There are two base classes that a custom WebPart can inherit from, either the SharePoint WebPart Bas....
Category: SharePoint Date: 5/10/2010 12:10:26 PM
SharePoint : What is a SharePoint Site Collection and how can we create it?

What is a SharePoint Site Collection and how can we create it?

A SharePoint site collection is a hierarchical set of sites that can be managed together. Sites with....
Category: SharePoint Date: 1/2/2010 1:05:38 AM
SharePoint : What is SharePoint Web Application and how can we create it?

What is SharePoint Web Application and how can we create it?

To create a SharePoint site or a site collection, we must first create a Web application. A Web appl....
Category: SharePoint Date: 1/2/2010 12:51:24 AM