Don't use HttpContext.Current, especially when using async by @RealSwimburger swimburger.net
HttpContext holds on to all the information regarding the current HTTP request. It has a lot of properties but is most commonly used to get the Request, Response, Session, User, Cache, and more. In ASP.NET WebForms most of the same properties are conveniently provided to you on the Page class. The HttpContext is also available using the Context property on the Page class.
Report Story
Leave Your Comment