private void LoadData() { try { if (txtSearch.Text.Length > 0) { string search = txtSearch.Text.Split('-')[0].ToString(); GridView1.DataSource = LLDDAL.GetObjectList(search, 5000, ""); GridView1.DataBind(); } else { GridView1.DataSource = LLDDAL.GetFullSPData(); GridView1.DataBind(); } } catch (Exception exc) { ErrorMessage = exc.Message; } }
public List <DatabaseObject> GetObjectList(string prefixText, int count, string contextKey) { return(LLDDAL.GetObjectList(prefixText, count, contextKey)); }