Tuesday 29 May 2012

No SPContext for Event Receiver

The most important thing You have to remember about is to not use the SPContext.Current property, becasue the current context in event receivers is always equal to null. If You need a SPWeb object You can use:


http://tomaszrabinski.pl/wordpress/2011/11/24/sharepoint-spitemeventreceiver/

No comments:

Post a Comment