Session 未将对象引用设置到对象的实例
我在ashx中获取Session 提示 "未将对象引用设置到对象的实例"public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (HttpContext.Current.Session["UserID"] != null)
{
userid = ((SunData.Model.BAS_OPERATORS)context.Session["UserID"]).CODE_OPERATOR;
}
}
请问各位大侠,这是哪里出错了啊 ? --------------------编程问答-------------------- HttpContext.Current.Session["UserID"]不存在?
下断点看看谁是null --------------------编程问答--------------------
--------------------编程问答--------------------
public class HelloWorld : IHttpHandler,IRequiresSessionState
public class HelloWorld : IHttpHandler,IRequiresSessionState
补充:.NET技术 , ASP.NET