Vipul Kelkar

Vipul Kelkar

  • NA
  • 1.9k
  • 570.1k

Sharepoint Feature with event receiver for a list

Mar 16 2011 10:50 PM
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)