.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> SharePoint >> Post New QuestionBookmark and Share Subscribe to Forum

How add multiple EventReceivers to List adding new item in SharePoint

Posted By: William Thompson     Posted Date: April 18, 2010    Points:2   Category :SharePoint
how to add multiple EventReceivers to a List while adding new item

that is in the new form page of a List after clicking 'ok' button multiple EventReceivers are to be fired one after the other

How Can we do that?

Author: Faizal             
Posted Date: April 18, 2010     Points: 5   

SPList has a property called EventReceivers which is nothing but a collection of events , so you can associated more than one event handler. A good eg: is if you associate an workflow with a SharePoint list and if you configure to start the workflow whenever an item added/updated, then internally it will be registering an event handler with that list, so even if you have any custom event handlers registered with that list with same operation all those events will fire sequentially.


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend