C# 如何在非页面类中引用Page对象

来源:互联网 发布:access2010数据库教程 编辑:程序博客网 时间:2024/05/16 12:48

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

Response,Request等一样.

如果要使用Page则:

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

原创粉丝点击