Chapter 1. Lists and Event Receivers

In this chapter, we will cover:

  • Validating data when an item is added to a list
  • Adding a custom error message to the Event Receiver
  • Adding an Application Page to an Event Receiver
  • Working with List Event Receiver
  • Deploying Event Receivers
  • Creating a Feature Receiver
  • Debugging a Feature Receiver
  • Debugging Feature Installed events

Introduction

SharePoint 2010 has a very robust event handling capability that can be used for custom pre and post list event processing. When you create your custom event receivers, you are writing event handlers for different events that SharePoint fires due to an action. The main events triggered by SharePoint can be classified as follows:

  • List Events
  • List Item Events
  • List Email Events
  • Web Events ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.