private void BindList() { DataSet ds = AdsBLL.Load_Ads(int.Parse(drp_sorttype.SelectedValue)); if (ds.Tables[0].Rows.Count > 0) { Pagination_Process.Process_Pagination(MyList, rptPages, lnk_Prev, lnk_Next, 40, this.PageNumber, ds.Tables[0].DefaultView); pnl_main.Visible = true; pnl_norecord.Visible = false; } else { pnl_main.Visible = false; pnl_norecord.Visible = true; } }