Creating Post Synchronous Event Receivers

With SharePoint 2010, “after” events or those ending with -ed such as ItemAdded, ItemDeleted, are exlusively asynchronous events. Most of the time, these would be fine and in case we needed the event to be synchoronous, then we use the -ing events such as ItemAdding or ItemDeleting. But what if we want to do some cleanup after the event has been completed? A scenario that came up to my mind is if we want to redirect the user to another page after a new item has been added or deleted to a list.
Post Synchronous events are now supported with the addition of the “Synchronization” property in the SPEventReceiverDefinition class.
SPEventReceiverDefinition myReceiver = eventReceivers.Add();
myReceiver.Synchronization = SPEventReceiverSynchronization.Sychronous;

Popularity: 11%

SharePoint 2010 – Demo VM ready for download

Microsoft has released the RTM version of its virtual machine images for evaluation environment. It contains two VHDs with pre-configured Windows Server 2008 R2 and SharePoint 2010, together with other software.

These virtual machines are Hyper-V images, so it requires your host OS to be Windows 2008 Server  R2 with the Hyper-V role enabled. In my case, I’m running Windows 7 as my host OS, so I convert the images to VMware Workstation images using WinImage Tool.

Continue reading

Popularity: 7%

Getting ready to level up

Change. Change is good, always welcome if it is for the better. Being in an industry where change is not only constant, but very fast, and sometimes we even need to create a need for it, is  part of being an IT professional.

This day, SharePoint 2010 RTM (release to market) was released on TechNet and MSDN, Microsoft’s developer network. And this got me thinking, as a SharePoint Consultant, I need to prepare for this and not just wait to be asked to be assigned in a project that will be implemented using it.

I’m actually pretty excited with it since last year, as I expect after the initial learning curve, that a lot of things that I do for my job will be a lot easier. But the thought of studying something on my own personal time is  a bit uncomfortable, I hope I can setup my SharePoint 2010 VM ASAP, so I can share with you my key learnings.

Popularity: 1%