Skip to main content

Posts

Showing posts from April 28, 2013

Event Receiver for SharePoint list item

Before writing event receiver, you should have the Sharepoint list for which you are going to write the event receiver.If you have long term goal of creating multiple event receiver for lists, maintain a folder for these event receiver. 1.        Create a folder EventReceiver 2.        Right click on the folder EventReceiver à Select Add option à Select New Item option               3 .        On the opened window, select the   Visual C#-->Sharepoint 2010 and now select the Event Receiver Template            In the Name textbox which is  present below,Give the LISTNAMEEventReceiver. i.e suppose you are going write event receiver for ActionTracker list, then the event receiver’s name would be ActionTrackerEventReceiver After entering the name , click on Add button.             4. Wait for some time to connect to your local server            5.   On the opened window, Select the List Item Events option from the dropdown of ‘ What