繁体中文
设为首页
加入收藏
当前位置:.Net技术首页 >> Asp.Net开发 >> 在类中使用page对象用HttpContext.Current

在类中使用page对象用HttpContext.Current

2007-09-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:比如在类中要使用Cache,用HttpContext.Current.Cache Response,Request等一样. 如果要使用Page则: Page p=(Page)HttpContext.Current.Handler;

比如在类中要使用Cache,用HttpContext.Current.Cache

Response,Request等一样.

如果要使用Page则:

Page p=(Page)HttpContext.Current.Handler;

责任编辑:admin
相关文章