首页 新闻 赞助 找找看

.net非Page类(底层类)中使用Session

0
悬赏园豆:5 [已关闭问题] 关闭于 2020-01-22 16:06

Object reference not set to an instance of an object.

using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;

public class FMS_Pegasus : System.Web.UI.Page,System.Web.SessionState.IRequiresSessionState,IHttpHandler

        if (System.Web.HttpContext.Current.Session["exsitSys"] != null)
        {
            string s = System.Web.HttpContext.Current.Session["exsitSys"].ToString();
        }
小柑的主页 小柑 | 初学一级 | 园豆:6
提问于:2019-08-12 15:51

怎么没有大神回回我呢

小柑 4年前
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册