protected void VendorFetch_Click(object sender, EventArgs e) { if (VendorDDL.SelectedValue == null) { MessageUserControl.ShowInfo("Missing Data", "Select a PO from the drop down list"); } else { MessageUserControl.TryRun(() => { UnorderedItemsListView.Items.Clear(); UnOrderedItemController sysmanager = new UnOrderedItemController(); sysmanager.Remove_UnorderedItems(); UnorderedItemsListView.DataBind(); ReceivingPanel.Visible = true; VendorsController sysmgr = new VendorsController(); var info = sysmgr.Vendor_Get(int.Parse(VendorDDL.SelectedValue)); VendorName.Text = info.VendorName; AddressAndCity.Text = info.AddressandCity; Contact.Text = info.ContactName; PhoneNumber.Text = info.Phone; ReasonCommentReasonMessage.Text = ""; // also need to make sure if quantity oustanding if = 0 make it not show outstanding for that specific row }, "Orders Search", "Order selected successful"); } }