I have explained the scenario below So, the custom event fires twice only at the time of uploading file into library.
The first time the Item Updating and Item Updated events fire it is in response to the document properties changing.
Remember that if you want to develop event receivers for specific lists, you will have to work with content types.
I’m Karine Bosch and currently I’m working as Share Point Solution Architect for Recomatics, a company located in Destelbergen near Ghent.
Instead of writing more paragraphs I can use tabular to explain, I think this will be easy to understand.
It’s a pretty simple fix, but we can definitely make it a bit more reusable for everyone on a development team and reduce the hassle of having to remember the specifics about how to run the check in their Item Updating and Item Updated event handlers.
This is my first post in 2013, here I just want to discuss about Event Receivers in Share Point 2010 (SPItem Event Receiver class) and an important factor with the Event Receivers.
Each event method has a SPItem Event Properties parameter named properties.
If you wish to modify a property value on the list item during the event, the value should be updated in After Properties property of the properties parameter.