protected void BindErrors(int pageNum, bool refresh) { int startRec, endRec, totalCount; startRec = ((pageNum - 1) * PAGE_SIZE) + 1; endRec = (pageNum) * PAGE_SIZE; dlErrorList.DataSource = CSFactory.GetAllErrors(rangeDateControlCriteria.StartDateValueLocal.ToString(), rangeDateControlCriteria.EndDateValueLocal.ToString(), startRec, endRec, out totalCount); dlErrorList.DataBind(); updList.Update(); if (refresh) { pg.SetUp(totalCount, PAGE_SIZE); updPg.Update(); } }