System.Web.HttpContext.Current.Session

解决方案 »

  1.   

    using System.Web.SessionState;
    such as 
    Session["TreeType"] = type;
      

  2.   

    xrascal(横刀夺爱),用了using System.Web.HttpContext.Current.Session出现如下错误
    C:\net_program\baseclass\AppInterface.cs(7): 类型或命名空间名称“Current”在类或命名空间“System.Web.HttpContext”中不存在(是否缺少程序集引用?)zwztu()
    using System.Web;我已经用了,可是没效果