Itemupdating folder fires twice
13-Oct-2019 22:45
The folder contains two C# files, each of which contains its own class with one function for that particular event receiver. And if I have two logically distinct actions that should be performed on the same list item in the same event, should I have one event receiver which does both actions, or separate event receivers for each?But if I have several event receivers for one list, should I put those into a single file? My current thought was to have a folder for each list, with separate files for each event receiver, and using a single event receiver to perform whatever actions are appropriate during that event (whether independent or not).
Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
One alternative would be to place all event receiver code/classes in a separate folder structure, but in my opinion it's better to have them in the same folder as the list definition.