Re: List Event Handler firing twice
- From: "JD" <yazoo@xxxxxxxxxxxxxxxx>
- Date: Wed, 22 Aug 2007 10:20:27 -0400
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.
.
- Follow-Ups:
- Re: List Event Handler firing twice
- From: Wei Lu [MSFT]
- Re: List Event Handler firing twice
- References:
- List Event Handler firing twice
- From: JD
- RE: List Event Handler firing twice
- From: Wei Lu [MSFT]
- List Event Handler firing twice
- Prev by Date: Re: Customize CreatePage mechanism
- Next by Date: Custom Ghosted Web Part Page
- Previous by thread: RE: List Event Handler firing twice
- Next by thread: Re: List Event Handler firing twice
- Index(es):
Relevant Pages
|