Re: List Event Handler firing twice

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I've seen that also, but I am not updating the list item in my event
handler.


"Wei Lu [MSFT]" <weilu@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:Kq7OstG5HHA.4100@xxxxxxxxxxxxxxxxxxxxxxxxx
Hello JD,

I searched the web and found some similar issue other users meet.

Here is an article:

http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/sp-event-
recievers-firing-10-times-on-purpose/

One solution is that you may disable the event firing before you update
it.

1SPListItem item = properties.ListItem;
2item["Title"] = "updated_" + item["Title"].ToString();
3this.DisableEventFiring();
4 item.Update();
5this.EnableEventFiring();

Hope this helps.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.


.



Relevant Pages

  • Re: Monitored Mourning
    ... I thought maybe Google played some role in this; ... found absolutely no posts after a certain time, on any subject, but posts ... when Google stopped updating for me were included. ... It needs to be understood that Google is basically a news server like any other ISP news server and things like updating, retention, archiving and so on sometimes runs very slow in updating posts, often erratically with massive hiccups in service. ...
    (rec.music.artists.springsteen)
  • Re: Going back to VB 6.0 Cant get help here.
    ... > I've been looking for simple solutions such as Updating ... > a database in VS 2005 and all I get is either no answer or another ... Obviously the people in the newsgroup can't read. ... Could you, perhaps refer us to your previous posts, as I'm unable to find ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Epson Perfection 1670 Photo Scanner
    ... I've seen a lot of posts about the 1670 suddenly ceasing to work. ... Mine did the same thing after updating XP at the ... XFX 7600GT ...
    (comp.periphs.scanners)
  • Re: Google toolbar install problem
    ... It appears from other posts that you cannot stop version 4 from ... updating. ... FWIW, I have version 3 and see no pressing reason to go to version 4. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Homegrown synchronization
    ... about 5 to 10 posts back. ... for the updates, you were using a completely different method ... and not using my column-by-column method of updating. ...
    (microsoft.public.access.replication)