protected void Page_Load(object sender, EventArgs e) { totalPage = 0; currentPage = -1; if (HttpContext.Current.Session["user"] == null) { Response.Write("<script language='javascript'>alert('登录信息过期,请重新登录');location.href='../../Login/Login.aspx'</script>"); } storerooms = StoreManage.GetStoreroom(); }
protected void Page_Load(object sender, EventArgs e) { totalPage = 0; currentPage = -1; states = 0; if (HttpContext.Current.Session["user"] == null) { Response.Write("<script language='javascript'>alert('登录信息过期,请重新登录');location.href='../../Login/Login.aspx'</script>"); } else { Dictionary <string, string> user = HttpContext.Current.Session["user"] as Dictionary <string, string>; try { storeID = int.Parse(user["storeID"]); } catch { storeID = -1; }; } store = StoreManage.GetStoreroom().Keys.ToList(); }