public Boolean InsertInstallers() { try { Whitfield_Project _wc = new Whitfield_Project(); _wc.DeleteInstallers(Convert.ToInt32(ViewState["twc_project_number"].ToString())); //ArrayList chkArray = GetSelectedItems(ChkProjContacts for (int i = 0; i < chkInstallers.Items.Count; i++) { if (chkInstallers.Items[i].Selected) _wc.PopulateProject_Installers(Convert.ToInt32(ViewState["twc_project_number"].ToString()), Convert.ToInt32(chkInstallers.Items[i].Value)); } return true; } catch (Exception ex) { HttpResponse objResponse = HttpContext.Current.Response; objResponse.Write(ex.Message); return false; } }