3
Reply

Sharepoint Feature with event receiver for a list

Vipul Kelkar

Vipul Kelkar

Mar 16 2011 10:50 PM
4.3k
Hi Guys,

I am writing a feature in sharepoint. What i need to do is when the feature in activated i need to enable some event recievers..If the feature is deactivated the receivers should stop working.
 ie if the feature is currently activated and user tries to add some values to a lists named say "My Tasks", i need to execute some code before the item is added (ItemAdding ?)

In the element manifest file, i need to add <Receiver>  ??
How can i specify that the receiver that is there should work only for the list named "My Tasks"

Answers (3)