private void GetPostCategoryPageWise(int pageIndex) { category = new CategoryBLL(); int recordCount = 0; gwCategory.DataSource = category.GetCategoryPageWise(pageIndex, PageSize); recordCount = category.CountRecordPostCategory(); gwCategory.DataBind(); this.PopulatePager(rptPager, recordCount, pageIndex, PageSize); }