protected void Application_Start(object sender, EventArgs e) { Application.Lock(); Application["MainController"] = new MainController(); Application["count"] = 0; Application["room_list"] = new List<string>(); Application.UnLock(); }
protected void Page_Load(object sender, EventArgs e) { mainController = Application["MainController"] as MainController; if (Session["user"] != null) { Response.Redirect("list.aspx"); } }