一般处理文件ASHX中使用取不到SESSION
2016-12-28 11:04
218 查看
在IHttpHandler的父类中使用了Session,在后台代码中调用该Session,但是抛出异常说该Session是Null,在网上查询相关资料说必须继承借口:IReadOnlySessionState 或 IRequiresSessionState,必须应用System.Web.SessionState命名空间
public class getemployee : IHttpHandler, IRequiresSessionState { }
引用IRequiresSessionState接口
相关文章推荐
- 一般处理文件.ashx中使用文件session遇到的问题
- 在ashx一般处理程序文件中不能使用session和request的问题解决办法
- 在ashx一般处理程序文件中不能使用session和request的问题解决办法
- 使用ashx一般处理程序,读取不到Session的问题
- 使用ashx一般处理程序,读取不到Session的问题
- C#一般处理程序 ashx.cs使用Session报错问题
- asp.net .ashx一般处理程序中使用Session
- 一般处理程序.ashx获取不到session
- 在ashx一般处理程序中使用session
- asp.net .ashx一般处理程序中使用session
- 一般处理程序(后缀为.ashx)里面使用Session,直接使用Session会报实例错误
- ASP.NET一般处理程序(.ashx.cs)中使用Session的问题
- C#一般处理程序 ashx.cs使用Session报错的处理
- 一般处理程序.ashx文件SESSION读写
- 一般处理程序(.ashx)中使用Session (转)
- 一般处理程序(.ashx)中使用Session
- ashx 一般处理程序中使用 Session
- 一般处理程序(.ashx)中session的使用方法
- 在ashx文件中使用Session和QueryString
- C#一般处理程序中使用Session