有一个类文件,helpers.cs,为什么这个代码:
public class Helpers
{
public static void LoginCheck(string Username, string Password)
{
HttpContext.Current.Session["UserRoute"] = DoStuff();
}
}告诉我错误:
System.NullReferenceException
会议怎么可能是空的?我的助手类需要继承其他页面或类吗?
NullException位于这一行:
HttpContext.Current.Session["UserRoute"] = reader["Link"].ToString();发布于 2013-02-10 14:43:07
您的处理程序需要实现IRequiresSessionState标记接口。
https://stackoverflow.com/questions/14798828
复制相似问题