protected void Page_Load(object sender, EventArgs e) { if (Session["Usermanager"] == null) { Response.Redirect("~/Login.aspx"); } else { if (!Page.IsPostBack) { allInfo = userinfomanager.GetAllUserInfoTB(); anpInfo.RecordCount = allInfo.Count(); BindUserInfo();//调用填充方法 } } }