c#在类里不能使用Response解决方法

response对应的类是HttpResponse,  在System.Web 命名字间里,   如果你在类中要使用   Response 的话,   需要使用System.Web.HttpContext.Current.Response 来取得   Response   对象
 
 
 
 
 

猜你喜欢

转载自www.cnblogs.com/dangpengfei/p/9230598.html