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?
1 Answer
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.