//在Global.asax设置
   void Application_Start(object sender, EventArgs e)
    {
        // 在应用程序启动时运行的代码
        Application.Lock();
        Application["b"] = 0;
        Application.UnLock();

    }   

protected void Page_Load(object sender, EventArgs e)
    {
        Application["b"] =(int)  Application["b"]+1;
        Response.Write(Application["b"]);
    }

posted on 2007-07-10 22:29  季沫  阅读(266)  评论(0编辑  收藏  举报