How to update an item or a folder without triggering item event receiver
In SharePoint platform, we know, when we update an item or a folder, we should run the updating code with with elevating privileges, and set the item’s web’s “AllowUnSafeUpdate” property true. So we update an item will be like this: SPSecurity.RunWithElevatedPrivileges(delegate(){ SPSite site = new SPSite(siteId); SPWeb web = SPSite.OpenWeb(webId); SPList list = web.Lists[listId]; SPListItem […]