Sharepoint eventhandler itemupdating

Rated 3.86/5 based on 829 customer reviews

In this case, there is a flexibility of cancelling the event on some conditions so that the event that gets initiated will not occur.Asynchronous event receivers are also known as ‘After’ event receivers.Field Deleting – This occurs when a field is being deleted from a list.Field Updated – This occurs after a field is updated in a list.Item Updating – This occurs while an item is being updated.Methods under the class SPFeature Receiver handle events related to feature. Feature Activated – This occurs after a feature is activated.

sharepoint eventhandler itemupdating-72

There are fundamentally five classes for Event Receivers for Share Point 2007. Web Deleted – This occurs after a website has been deleted completely. Web Deleting – This occurs before a website is deleted. Web Moved – This occurs after an existing website is moved. Web Moving – This occurs before a website is moved. Methods under the class SPList Event Receiver handle list level events. Field Added – This occurs after a field link is added to a list.

Item File Converted – This occurs when the type of file is being converted.

Item File Moved – This occurs after a file is moved.

It is nice to update Title in Item Adding and Item Updating events since extra Updates are avoided (without Disable Event Firing), and the "Edit Properties view" will already have the Title filled in Some code example to update title based on filename. For working with Title in Lists, ["Title"] needs to be used.

While developing any application we need to handle some events.

Leave a Reply