一种方法是用应用程序cache第二种方法是用ajax分步调取页面

解决方案 »

  1.   

    在一般应用处理程序中不能直接使用session。要引入using System.Web.SessionState;要在class中引入IHttpHandler,IReadOnlySessionState然后,才能使用seesion如果这个 已经 用过了,我暂时就不知道了
      

  2.   

    你不会其他页面ajax post/get请求一般处理程序$.get("../../../Proxy/xxx.ashx?path='123' string xmlpath=requerst["path"]
      

  3.   

    3#正解...
    using System;
    using System.Web;
    using System.Web.SessionState;
    using System.Data;public class GCX : IHttpHandler, IRequiresSessionState{
        
        public void ProcessRequest (HttpContext context) 
          {
            context.Response.ContentType = "application/json";
            context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
            var user = context.Session["user"] as dosoft.Model.xt_tc_User;
           }
    }
      

  4.   

    判断为不为空啊,你非要session没记录时候去取它的值 ,
    不懂你为何还要这样做,你自己都说了由于session还没存值!你是想在处理程序中干什么呢?说出来 换种思路