Implementing the Document Event Handler (1)--Start Event Handler support
Summary
In practical applications, we often need to send some of the Web site operations to others by mail or other means, such as uploading a document, asking for an email, notify the leader of the new document upload and so on. To achieve this, we can use the Event Handler in SharePoint.
This article describes how to implement the process of document event handler.
Body
In order to give friends a clearer idea of the steps to implement the document event handler, this article will be split into a few small sections, each part explaining a large implementation step. Therefore, for all the inconvenience of reading, please Haihan:
It is noteworthy that this is the implementation of the document event Handler, that is, only for the document upload, update, and other event Handler. Other types of event Handler will be introduced in subsequent articles.
In addition, for the sake of simplicity, here I realize the event handler, not to send mail, write database operations, but to C: wrote a file. You can try to change to send mail, write the database and so on the way.
To implement event Handler, you must first start event Handler support.
The procedures for each step are recorded below.
1, first open the SharePoint 3.0 Central Administration, and then open the Application Managerment Admin page. These pages are all old faces:
2, click the Web application settings, then enter the Web application Settings page.
In the Web Application Settings page, locate the event handlers item, set it to on, and then click the OK button to save the settings.
At this point, starting event handler support was successful.
In the next article I'll record how to implement the second part of the document event handler--writing the handler program.