protected void BankAccountDetailsView_ItemInserted(object sender, DetailsViewInsertedEventArgs e) { UserBL userBL = new UserBL(); int bankaccountid = Convert.ToInt32(Session["NewBankID"]); int bankid = userBL.CompanySetBankAccountID(bankaccountid); string accountname = userBL.GetBankAccountName(); if (accountname != null) { TextBox pe = (TextBox)CompanyDetailsView.FindControl("BankAccountTextBox"); pe.Text = accountname; } ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "CloseModal('BodyContent_ModalPanel1');", true); }
protected void SelectLinkButton1_Command(object sender, CommandEventArgs e) { UserBL userBL = new UserBL(); string value = e.CommandArgument.ToString(); int bankaccountid = Convert.ToInt32(value); int test = userBL.CompanySetBankAccountID(bankaccountid); }
protected void BankInsertLinkButton_Click(object sender, EventArgs e) { UserBL userBL = new UserBL(); int bankaccountid = 0; int bankid = userBL.CompanySetBankAccountID(bankaccountid); }