System.Web.HttpContext.Current.Session获取值出错
2016-09-03 15:45
405 查看
一次在一般处理中调用context.Session["UserName"] = tab.Rows[0]["UserName"].ToString();居然一直获取不到值保存
百度才知道在ASHX中必须继承System.Web.SessionState.IRequiresSessionState
百度才知道在ASHX中必须继承System.Web.SessionState.IRequiresSessionState
相关文章推荐
- .net System.Web.HttpContext.Current.Session 获取值出错(一般处理程序中出错)
- System.Web.HttpContext.Current.Session获取值出错
- .net System.Web.HttpContext.Current.Session 获取值出错(在Page继承类的构造函数中出错)
- System.Web.HttpContext.Current.Session获取值出错
- System.Web.HttpContext.Current.Session获取值出错
- 为什么获取的System.Web.HttpContext.Current值为null,HttpContext对象为null时如何获取程序(站点)的根目录
- System.Web.HttpContext.Current.Session为NULL解决方法
- System.Web.HttpContext.Current.Session为NULL值的问题?
- System.Web.HttpContext.Current.Session为NULL值的问题?
- asp.net中处理程序调用HttpContext.Current.Session获取值出错
- System.Web.HttpContext.Current.Session NullReference错误
- System.Web.HttpContext.Current.Session为NULL值的问题?
- System.Web.HttpContext.Current.Session为NULL值的问题?
- System.Web.HttpContext.Current.Session为NULL值的问题?
- System.Web.HttpContext.Current.Cache 与System.Web.HttpRuntime.Cache
- System.Web.HttpContext.Current.Server.MapPath()
- HttpContext为null new HttpContextWrapper(System.Web.HttpContext.Current)
- 慎用System.Web.HttpContext.Current
- System.Web.HttpContext.Current.Server.MapPath("~/upload/SH") 未将对象引用设置为实例对象
- System.Web.HttpContext.Current.Cache和System.Web.HttpRuntime.Cache有什么区别?