
HttpContext.Current.Response和Response有什么区别?
展开全部
HttpContext.Current.Response:当前请求的Response对象,在不同的时候这个的返回值是不一样的。
Page.Response:当前页面的Response对象。
举个例子,你访问a.aspx的时候,
HttpContext.Current.Response就等效于a页面里的Response
你访问b.aspx的时候,
HttpContext.Current.Response就等效于b页面里的Response
Page.Response:当前页面的Response对象。
举个例子,你访问a.aspx的时候,
HttpContext.Current.Response就等效于a页面里的Response
你访问b.aspx的时候,
HttpContext.Current.Response就等效于b页面里的Response
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询