5

I want to create Event Receiver, but I need an event type that would work when opening the library\list page for example. Tell me which event to use? Or is Event Receiver not the best solution?

enter image description here

1 Answer 1

10

As a short answer, There is no Event Receiver type that will trigger when opening a Library/ List Page!!!

The Event receiver should be used to trigger a specific action before or after a specific event like Item Added (After), Item Adding (Before), Item updated (After), Item updating (Before) ...etc

The alternative solution:

  • Creating a web part that will be hosted in the Library page and add your code (action) to trigger in the Page Load event.
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.