Event itemupdating which wasn t

20-May-2020 03:30

I’ve got an event handler on a Share Point list that’s fairly long running, and this then raised a question in the office – do these settings control event firing for the currently running event handler, or for the entire list? A quick check on twitter suggested the same – that it was the thread (thanks @Chris O_Brien).

The setting (Disable Event Firing in 2007 and Event Firing Enabled in 2010) must be for the current event handler; if it was the entire list there’d be all sorts of timing issues and weirdness, and a thousand developers would already have screamed in agony.

event itemupdating which wasn t-30event itemupdating which wasn t-15event itemupdating which wasn t-83

Because then I have to code those extra features that the Grid View and Details View have that the repeater does not.So Event Firing Enabled calls a static method on the SPEvent Manager object – sounds reasonable, let’s look at that: Okay, so we’re setting a private static Local Data Store Slot to mark whether event firing is enabled or not.This Local Data Store Slot is in the SPEvent Manager class, and being static, it’ll be shared across the entire thread, for that current domain.It is set in the Page_Load because it is retrieved from from data objects (NHibernate).I'm not sure if just B was doing the same thing or not.

Because then I have to code those extra features that the Grid View and Details View have that the repeater does not.So Event Firing Enabled calls a static method on the SPEvent Manager object – sounds reasonable, let’s look at that: Okay, so we’re setting a private static Local Data Store Slot to mark whether event firing is enabled or not.This Local Data Store Slot is in the SPEvent Manager class, and being static, it’ll be shared across the entire thread, for that current domain.It is set in the Page_Load because it is retrieved from from data objects (NHibernate).I'm not sure if just B was doing the same thing or not.I seem to have a problem with mode changing when using my detailsview control. protected void Detail View_Mode Changing(object sender, Details View Mode Event Args e) Now, when I click on edit or insert and trace, the program hits the right event, but I have to hit the button twice for the control to change mode.