O'Reilly logo

SharePoint 2007 Development Recipes: A Problem-Solution Approach by Mark E. Gerow

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Working with Event Handlers

SharePoint 2007 has a significantly expanded event-handling capability that can be used to add custom pre- or postprocessing of list events. Such handlers dramatically expand what SharePoint can do with lists. And after you've mastered the basics, there's really no limit to the code that you can attach to an event handler. In this chapter, you'll find several recipes that will show you their flexibility and potential, including how to validate and update list item data, send a custom email upon task completion, and prevent users from deleting items based on custom business rules.

Note

Everything shown in this chapter will work in either MOSS 2007 or WSS 3.0.

Why Create an Event Handler?

SharePoint's native list ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required