private DataTable sSearchByName(int sSear) { //sSear = mSearchCon; DataTable tb = new DataTable("SearchResult"); if (sSear == 1) { tb = boLop.SearchClass_ByName("%" + txtSearchInput.Text + "%"); } else if (sSear == 2) { tb = boLop.SearchClass_ByName(txtSearchInput.Text + "%"); } return(tb); }