ViewState 例如ViewState["zt"] = Request.QueryString["zt"].ToString(); 只是在本页面中有效。相当于本页面的全局变量。 Session[""]是全部页面的全局变量。