hi!
can anybody suggest me as to how to write an event handler code (in C# preferably) that would detect an event which takes place in WSS(Sharepoint)...suppose, a document has been uploaded in Sharepoint..our code should be able to detect it and take an appropriate
action like copy it to some other folder or store it somewhere etc...
if anybody can provide me code snippets of the same, i will be really thankful..
-
-
subhashish_roy wrote:hi!
can anybody suggest me as to how to write an event handler code (in C# preferably) that would detect an event which takes place in WSS(Sharepoint)...suppose, a document has been uploaded in Sharepoint..our code should be able to detect it and take an appropriate action like copy it to some other folder or store it somewhere etc...
if anybody can provide me code snippets of the same, i will be really thankful..
Check out "Document Library Events" in the SDK. You implement an interface in a DLL, place it in the server and WSS will take care of launching your event handler when the doclib changes.
You have to enable Document Library events in the Central Configuration first, though:
http://www.microsoft.com/resources/documentation/wss/2/all/adminguide/en-us/stsg07.mspx
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.