protected void btnDelete_Click(object sender, EventArgs e) { Result oResult = null; string sTransNo = TransactionNo(); AuthorizedDeleteDAL ad = new AuthorizedDeleteDAL(); if (ddlTransType.SelectedValue == "I") { oResult = ad.DeleteTransaction(SBM_BLV1.baseCommon.enmTransType.Issue, sTransNo); } else if (ddlTransType.SelectedValue == "C") { oResult = ad.DeleteTransaction(SBM_BLV1.baseCommon.enmTransType.Interest_Payment, sTransNo); } else if (ddlTransType.SelectedValue == "E") { oResult = ad.DeleteTransaction(SBM_BLV1.baseCommon.enmTransType.Encashment, sTransNo); } else { IssueDAL oIssueDAL = new IssueDAL(); string sDeleteKey = gvTransactionList.Rows[0].Cells[0].Text; oResult = oIssueDAL.DeleteBBDocumentList_AD(sDeleteKey, ddlTransType.Text); } if (oResult.Status) { //UpdatePanel3 btnSearch_Click(sender, e); ucMessage.OpenMessage("Authorized Deleted Successfully Executed.", Constants.MSG_TYPE_INFO); ScriptManager.RegisterStartupScript(this.UpdatePanel3, typeof(string), Constants.POPUP_WINDOW, Util.OpenPopup("info"), true); } else { ucMessage.OpenMessage("Error: " + oResult.Message, Constants.MSG_TYPE_INFO); ScriptManager.RegisterStartupScript(this.UpdatePanel3, typeof(string), Constants.POPUP_WINDOW, Util.OpenPopup("info"), true); } }