Mann Software
Mann Software > SharePoint and the Office System > Posts > HttpContext in Event Receivers
HttpContext in Event Receivers

A number of people (notably here, here and here) have written about ways to get a value for HttpContext.Current inside a SharePoint event receiver. They all correctly note that it only works for synchronous events, which makes perfect sense. What they don't mention is that it does NOT work for all synchronous events – notably ItemDeleting. HttpContext.Current is always null in ItemDeleting.

Comments

There are no comments yet for this post.
SharePoint Server MVP Community Kit for SharePoint Philly Office Geeks ISPA