private void btnSaveAssignments_Click(object sender, EventArgs e) { assignProfileError.Visible = false; try { ArrayList reassignmentList = new ArrayList(); foreach (RadListBoxItem item in assignedVehiclesListBox.Items) { reassignmentList.Add(new Guid(item.Value)); } CurrentProfile.AssignVehicles(reassignmentList); foreach (Fleetwood.BlueSphere.BusinessLogic.Vehicle v in BSCustomer.VehicleList) { if (v.SafetyCheckProfileID == CurrentProfileID) { if (!reassignmentList.Contains(v.ID)) { v.SafetyCheckProfileID = Guid.Empty; v.Update(); } } } Response.Redirect(Request.RawUrl); } catch (Exception ex) { assignProfileError.InnerText = ex.Message; assignProfileError.Visible = true; } }