Created
November 25, 2014 13:18
-
-
Save vgrem/b5d646c899255e8e9216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (HttpContext.Current == null) | |
{ | |
HttpRequest request = new HttpRequest("", web.Url, ""); | |
HttpContext.Current = new HttpContext(request, new HttpResponse(new StringWriter())); | |
HttpContext.Current.Items["HttpHandlerSPWeb"] = web; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment