Itemupdating event handler
Share Point 2010 offers 2 types of Event Handlers which we can attach to List, Libraries, etc. The differences between these Event Handlers are: These event handlers are mostly used when the execution of event is based on some condition.We can write the code to execute the event only when certain condition is true else we can stop the event execution.To understand why this is happening, let’s first look at what happens when the user adds a document to the library when the Require Check Out option is disabled: So the net result of this is that the document is uploaded and the Item Adding and Item Added events have fired, which is pretty much what you would expect.Next, let’s look at what happens when the user adds a document when the Require Check Out option is enabled.Unfortunately, that makes your project like the Titanic.I don’t mean that it’s largest and most luxurious application every written, but rather that you may be cruising headlong into a nasty rendezvous with an iceberg that could deal a severe blow to your project.This is because you have two classes – one that is handling the Item Updating event and in which the instance level variable is set, and one that is handling the Item Updated event in which the instance level variable is not set.Simply put, the Item Updating and Item Updated fire twice when adding a document to a library that has the Require Check Out option enabled.
The second time they fire it is in response to the document being checked in.I’m usually disappointed when writers employ oft-overused metaphors to describe a situation.With that in mind, Share Point 2010 is like a sea of icebergs – there is a lot going on under the surface that you may not notice until it’s too late.Update: The event handler is attached to a MOSS 2007 publishing Pages list.
I've had a lot of trouble with event handlers on publishing pages libraries.
(no updates required since you are changing the value before it gets saved) I would verify that your Event Receiver is attached to the list.