protected void Page_Load(object sender, EventArgs e) { try { if (Request.QueryString["id"] != null) { int id = Convert.ToInt32(Request.QueryString["id"]); string val = Request.QueryString["action"]; LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter(); if (val == "reinstate") { LoanDS.LoanApplicationsRow rLoanApp = loanApp.GetLoanApplication(id.ToString())[0]; if (rLoanApp.IsdatReinstateIDNull() == false) { int reinstateid = rLoanApp.datReinstateID; loanApp.UpdateAppReinstate(reinstateid, id); } } else if (val == "delete") { loanApp.UpdateAppReinstate(null, id); } } }catch (Exception ex) {} }
protected void Page_Load(object sender, EventArgs e) { try { if (Request.QueryString["id"] != null) { int id=Convert.ToInt32(Request.QueryString["id"]); string val = Request.QueryString["action"]; LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter(); if (val=="reinstate") { LoanDS.LoanApplicationsRow rLoanApp = loanApp.GetLoanApplication(id.ToString())[0]; if (rLoanApp.IsdatReinstateIDNull() == false) { int reinstateid = rLoanApp.datReinstateID; loanApp.UpdateAppReinstate(reinstateid, id); } } else if( val=="delete") { loanApp.UpdateAppReinstate(null, id); } } }catch(Exception ex){} }