protected void btnnew_Click(object sender, EventArgs e) { Whitfield_Project _wc = new Whitfield_Project(); _wc.DeleteProjectClient(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ViewState["twcProjectNumber"].ToString())); //ArrayList chkArray = GetSelectedItems(ChkProjContacts for (int i = 0; i < ChkPrjClient.Items.Count; i++) { if (ChkPrjClient.Items[i].Selected) _wc.PopulateProject_client(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ChkPrjClient.Items[i].Value), Convert.ToInt32(ViewState["twcProjectNumber"].ToString())); } Response.Write("<script language='javascript'>parent.location.replace('Whitfield_projectInfo.aspx?EstNum=" + ViewState["EstNum"].ToString() + "&twc_project_number=" + ViewState["twcProjectNumber"].ToString() + "');</script>"); }