Question

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

Était-ce utile?

La solution

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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top