HttpContext.Current

HttpContext. Response 直接这样写会报错 是因为 httpcontext没有提供response 这个静态的方法。

通过这样写就可以 ASP.NET还为它提供了一个静态属性HttpContext.Current来访问它

原文地址:https://www.cnblogs.com/muxueyuan/p/3966600.html