public void Bind() { int currentpage = Convert.ToInt32(Request["CurrentPage"]); int check = 1; currentpage = (currentpage < 1) ? 1 : currentpage; if (this.Pager1.CurrentIndex > 0) { currentpage = this.Pager1.CurrentIndex; } int pageSize = this.Pager1.PageSize; QPS.NEW.BLL.Integral intgl = new QPS.NEW.BLL.Integral(); ds = intgl.Select(pageSize, currentpage); dgExamProj.DataSource = ds; this.Pager1.ItemCount = intgl.GetCount(); dgExamProj.DataBind(); }