protected void EquipmentSearchButton_Click(object sender, EventArgs e) { //search for all equipment with the selected description //get by description and throw in listview MessageUserControl.ShowInfo("Search for Equipment: " + EquipmentDescriptionSearch.Text); MessageUserControl.TryRun(() => { RentalController sysmgr = new RentalController(); List <RentalEquipment> results = sysmgr.List_RentalEquipmentByDescriptionSearch(EquipmentDescriptionSearch.Text); if (results.Count() == 0) { MessageUserControl.ShowInfo("No results, check your search criteria"); } AvalibleEquipmentListview.DataSource = results; AvalibleEquipmentListview.DataBind(); }); }