Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How to remove event handler for a List

  Asked By: Sampat Bellubbli         Date: Jun 26, 2007      Category: Sharepoint      Views: 1477
 

I have created event handler(ItemDeleting, ItemUpdating) for a List and it is
working fine.

I want to remove the same event handlers attached to the list

please can any body let me know how to do that.

Tagged:              

 

7 Answers Found

 
Answer #1       Answered By: Karla Morrison          Answered On: Jun 26, 2007       

If you installed them using a Feature, deactivate and Uninstall the
Feature then remove  the .DLL from the GAC.

 
Answer #2       Answered By: Patricia Richardson          Answered On: Jun 26, 2007       

I am using console application to add events to a list.

 
Answer #3       Answered By: Alexandra Patterson          Answered On: Jun 26, 2007       

other reply for how to gain access to the instance of the
EventHandler and then call the Delete Method. You can also iterate
through the EventReceivers collection using a ForEach until you find the
EventReceiverDefinition with the right name. It's easier if you don't
know the GUID.

 
Answer #4       Answered By: Deven Ghurye          Answered On: Jun 26, 2007       

Deactivate the Feature.................

 
Answer #5       Answered By: Stefanie Ruiz          Answered On: Jun 26, 2007       

To remove  the event  receiver in code use the following:

SPEventReceiverDefinition eventDef = list.EventReceivers[Guid];
eventDef.Delete();

You may want to check out the SharePoint Tips Utility Pack:
http://www.codeplex.com/spstipsUtilityPack.

 
Answer #6       Answered By: Damon Garner          Answered On: Jun 26, 2007       

and thanks for link to download, tool

 
Answer #7       Answered By: Joanne Greer          Answered On: Jun 26, 2007       

I am using a console application to add events to a list.

 
Didn't find what you were looking for? Find more on How to remove event handler for a List Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].