protected void btnDivTranxOccur_Click(object sender, EventArgs e) { try { customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; rmVo = (RMVo)Session[SessionContents.RmVo]; userVo = (UserVo)Session[SessionContents.UserVo]; Button btnDivTranxConfirmation = (Button)sender; GridViewRow gvr = (GridViewRow)btnDivTranxConfirmation.NamingContainer; int index = gvr.RowIndex; schemeId = int.Parse(gvMFAlerts.DataKeys[index].Values["SchemeId"].ToString()); accountId = int.Parse(gvMFAlerts.DataKeys[index].Values["AccountId"].ToString()); alertsBo.SaveAdviserMFDividendConfirmationAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, schemeId, 0, userVo.UserId); BindCustomerMFAlertGrid(); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerMFAlert.ascx:btnDivTranxOccur_Click()"); object[] objects = new object[0]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }