protected void CounselingsGrid_PageIndexChanging(Object sender, GridViewPageEventArgs e) { CounselingsGrid.PageIndex = e.NewPageIndex; DataTable counselings = AdminEmail.GetCounselings(); CounselingsGrid.DataSource = counselings; CounselingsGrid.DataBind(); }
private void BindCounselings() { try { DataTable counselings = AdminEmail.GetCounselings(); CounselingsGrid.DataSource = counselings; CounselingsGrid.DataBind(); //logger.Debug("contents - " + contents.Rows.Count); } catch (Exception ex) { logger.Error("BindContents Exception - " + ex.Message); } }