protected void btnDeleteSetup_Click(object sender, EventArgs e) { try { customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; foreach (GridViewRow gvr in this.gvEQAlerts.Rows) { if (((CheckBox)gvr.FindControl("chkId")).Checked == true) { scripId = int.Parse(gvEQAlerts.DataKeys[gvr.RowIndex].Values[0].ToString()); accountId = int.Parse(gvEQAlerts.DataKeys[gvr.RowIndex].Values[1].ToString().Trim()); alertsBo.DeleteCustomerAlertSetup(customerVo.CustomerId, accountId, scripId); } } BindCustomerEQAlertGrid(); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerEQAlerts.ascx:btnDeleteSetup_Click()"); object[] objects = new object[0]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }