在类中使用page对象用HttpContext.Current
2006-03-17 18:50
585 查看
比如在类中要使用Cache,用HttpContext.Current.Cache
Response,Request等一样.
如果要使用Page则:Page p=(Page)HttpContext.Current.Handler;
Response,Request等一样.
如果要使用Page则:Page p=(Page)HttpContext.Current.Handler;
相关文章推荐
- 在类中使用page对象用HttpContext.Current
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例
- 在自定义类中使用HttpContext和Page等对象的方法
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例上
- ashx中使用HttpContext.Current.Session ,出现未将对象引用设置到实例上[转]
- HttpContext.Current.Session ,出现未将对象引用设置到实例上
- ASP.NET多线程下使用HttpContext.Current为null解决方案
- 在.net Core 中像以前那样的使用HttpContext.Current
- Page的 Context属性跟HttpContext.Current引用相等的
- 使用线程访问的类库使用httpcontext.current
- ASP.NET多线程下使用HttpContext.Current为null解决方案
- 为什么获取的System.Web.HttpContext.Current值为null,HttpContext对象为null时如何获取程序(站点)的根目录
- 在ASP.NET Core中怎么使用HttpContext.Current
- 在.net Core 中像以前那样的使用HttpContext.Current
- [常见问题]cookie使用1.Page与HttpContext的Request、Res 4000 ponse
- HttpContext.Current.Server.MapPath("/") 未将对象设置到对象的实例异常。
- asp.net后台导出excel的方法:使用System.Web.HttpContext.Current.Response导出excel