protected void btnReprocess_Click(object sender, EventArgs e) { bool blResult = false; uploadsCommonBo = new UploadCommonBo(); int countTransactionsInserted = 0; int countRejectedRecords = 0; string error = ""; int processIdReprocessAll = 0; // BindGrid if (Request.QueryString["processId"] != null) { ProcessId = Int32.Parse(Request.QueryString["processId"].ToString()); blResult = TradeAccountStagingInsertion(ProcessId, out countTransactionsInserted, out countRejectedRecords); } else { DataSet ds = uploadsCommonBo.GetEquityTradeAccountStagingProcessId(adviserVo.advisorId); foreach (DataRow dr in ds.Tables[0].Rows) { processIdReprocessAll = int.Parse(dr["ProcessId"].ToString()); blResult = TradeAccountStagingInsertion(processIdReprocessAll, out countTransactionsInserted, out countRejectedRecords); } } if (blResult == false) { error = error + "Error when reprocessing for the processid:" + processIdReprocessAll + ";"; } if (blResult) { // Success Message trErrorMessage.Visible = true; lblError.Text = "Reprocess Done Successfully!"; } else { // Failure Message trErrorMessage.Visible = true; lblError.Text = "Reprocess Failure!"; } BindRejectedUploadsGrid(ProcessId); }