Exemple #1
0
 public static void LoadCOMN_CampusPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlCOMN_CampusProvider sqlCOMN_CampusProvider = new SqlCOMN_CampusProvider();
     DataSet ds =  sqlCOMN_CampusProvider.GetCOMN_CampusPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      cOMN_CampussPaggination(rptPager,recordCount, pageIndex, PageSize);
 }