/// <summary> /// When a manufacturer is loaded populate models ddl with related models. /// </summary> protected void ManufacturerDdl_SelectedIndexChanged(object sender, EventArgs e) { try { List <string> models; //Clear values and add empty row to models dropdown everytime manufacturer dropdown is changed modelDdl.Items.Clear(); modelDdl.Items.Add("All"); models = VehicleManager.GetModels(manufacturerDdl.SelectedValue); foreach (string model in models) { modelDdl.Items.Add(model); } } catch (Exception ex) { generalErrorLbl.Text = "An error has occured saying: " + ex.Message + " Please contact your system administrator."; } }