void ucpage_onLoadPageIndexChaning(int pageIndex) { UserInfo user = new UserInfo(); if (Session["user"] != null) { user = (UserInfo)Session["user"]; } else { Response.Redirect("../login.aspx"); return; } hfLoginId.Value = user.UID.ToString(); PagedDataSource page = new PagedDataSource(); page.DataSource = StockApplicationManager.SearchStockApplication(Convert.ToInt32(txtSAID.Text.Trim() == "" ? "0" : txtSAID.Text.Trim()), txtSATime.Value.Trim(), user.UID); ucpage.DataCount = page.Count; page.AllowPaging = true; page.PageSize = 10; page.CurrentPageIndex = pageIndex; ucpage.PageCount = page.PageCount; gvStockApplicationList.DataSourceID = null; gvStockApplicationList.DataSource = page; gvStockApplicationList.DataBind(); }
private void BorrowBind(int said, string satime) { UserInfo user = new UserInfo(); if (Session["user"] != null) { user = (UserInfo)Session["user"]; } gvStockApplicationList.DataSourceID = null; gvStockApplicationList.DataSource = StockApplicationManager.SearchStockApplication(said, satime, user.UID); gvStockApplicationList.DataBind(); }