private void BindRepeater() { Data_Search_SelectTableAdapter srcAdapter = new Data_Search_SelectTableAdapter(); DataTable dt = null; if (SearchCat.Value == "Headnotes") { dt = srcAdapter.GetCLSearch(Keyword.Value, PartyName.Value, Court.Value,Bench.Value, CaseNo.Value, JudgeName.Value, Citation.Value, Year.Value, UPager.CurrentIndex, UPager.PageSize); } else { dt = srcAdapter.GetCLKeySearch(Keyword.Value, PartyName.Value, Court.Value,Bench.Value, CaseNo.Value, JudgeName.Value, Citation.Value, Year.Value, UPager.CurrentIndex, UPager.PageSize); } repSrcResult.DataSource = dt; repSrcResult.DataBind(); if (dt.Rows.Count > 0) { DPager.ItemCount=UPager.ItemCount = Double.Parse(dt.Rows[0]["TotalRows"].ToString()); } else { DPager.Visible = UPager.Visible = false; nores.Visible = true; } }