SP 2010: How To - Event Receivers and Custom Error Pages

Author: Tobias Zimmergren http://www.zimmergren.net | http://www.tozit.com | [@zimmergren](http://www.twitter.com/zimmergren) Introduction SharePoint 2007 Many of you are aware that in SharePoint 2007, you can create Event Receivers (aka. Event Handlers) to take care of things for you when specific things happen. For example, you can subscribe to the "ItemAdded" event for a specific list, and have your custom code execute when the event fires. Also, you are in SP 2007 able to cancel an event if you have the need for it, hence providing the user with an error message in…

Read More

Starting a SharePoint workflow from code (Event Receiver)

Author: <font color="#3c3c3c" size="1">Tobias Zimmergren</font> (tobias at zimmergren dot net) URL: http://www.zimmergren.net In one of my current projects I was facing the issue of triggering a workflow – but didn’t want the entire workflow to kick off unless absolutely necessary. Instead of the traditional approach where you hook up your workflow to trigger on new items or items being changed, I want to make a check to see if anything really had changed and then check a few other variables before even starting the workflow…

Read More