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

来源:互联网 发布:linux tail相反 编辑:程序博客网 时间:2024/05/17 07:45

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

Response,Request等一样.

如果要使用Page则:Page p=(Page)HttpContext.Current.Handler;

原创粉丝点击