Event Handler

Synchronous Event Receivers

SharePoint is a big (massive!) product, there are features and enhancements in SP2010 which I haven’t even used yet – mostly because I haven’t needed to. One of these is the ability to run after events synchronously (ItemAdded, ListAdded and WebProvisioned). Previously all after events were executed asynchronously and on…

Visual Studio SharePoint Event Receiver SPI Bugs

I have been doing a fair amount of SharePoint 2010 development recently, a lot of this with event receivers. The new SPI (SharePoint Item) functionality in VS2010 is great and long gone are the days of creating Elements xml files manually. Although it isn’t all sunshine and roses as I…

BeforeProperties/AfterProperties in Event Receivers – I always forget this

  I always forget this and when I come to create a new SharePoint Event Receiver I wonder why the BeforeProperties or AfterProperties are sometimes not populated. The Synergy MOSS blog has a really good post describing exactly what properties will contain a hash table and which will be empty…

Creating a Simple Event Handler for SharePoint – Part 1

A question often asked by my users was can we prevent other users from deleting or modifying their documents uploaded to a document library, this as we all know is core SharePoint functionality but can be disabled by using event handlers.Event handlers bind/attach to document libraries or any type of…