protected void btnDownPage_Click(object sender, EventArgs e) { int lCurrentPage = Convert.ToInt32(ViewState["CurrentPage"]); for (int i = 0; i < cblistUpdate.Items.Count; i++)//读取CheckBoxList 选中的值,保存起来 { if (cblistUpdate.Items[i].Selected) { info[(lCurrentPage * 10) + i] = cblistUpdate.Items[i].Value; } } lCurrentPage++; if (lCurrentPage + 1 == Convert.ToInt32(ViewState["PageCount"])) { btnDownPage.Enabled = false; } GA Gadmin = new GA(); GAController gadmin = new GAController(); FirstClassDm firstClassName = new FirstClassDm(); firstClassName.FirstClassDmName = "服装"; string lfirstClassDmID = Gadmin.FcNameGetID(firstClassName); List <ImgInfo> Furniture = new List <ImgInfo>(); Furniture = gadmin.HomeNextPage(Gadmin, lCurrentPage); cblistUpdate.DataSource = Furniture; cblistUpdate.DataTextField = "ImgTitle"; cblistUpdate.DataValueField = "GoodID"; cblistUpdate.DataBind(); dlistPictureShow.DataSource = Furniture; dlistPictureShow.DataBind(); btnUpPage.Enabled = true; ViewState["CurrentPage"] = lCurrentPage; lbPage.Text = "第" + (lCurrentPage + 1) + "页/共 " + ViewState["PageCount"].ToString() + "页"; }