public void FillLocationCombobox() { DataTable dt = VSWebBL.DashboardBL.KeyMetricsBL.Ins.GetLocation(); LocationComboBox.DataSource = dt; LocationComboBox.TextField = "Location"; LocationComboBox.DataBind(); LocationComboBox.SelectedIndex = 0; }
private void FillLocationComboBox() { DataTable LocationDataTable = VSWebBL.SecurityBL.LocationsBL.Ins.GetAllData(); LocationComboBox.DataSource = LocationDataTable; LocationComboBox.TextField = "Location"; LocationComboBox.ValueField = "Location"; LocationComboBox.DataBind(); }
private void fillLocationComboBox() { //6/30/2014 NS added for VSPLUS-789 try { DataTable LocationsTable = VSWebBL.SecurityBL.LocationsBL.Ins.GetAllData(); if (LocationsTable.Rows.Count > 0) { LocationComboBox.DataSource = LocationsTable; LocationComboBox.TextField = "Location"; LocationComboBox.ValueField = "ID"; LocationComboBox.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); } }