コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 protected void BankInsertLinkButton_Click(object sender, EventArgs e)
 {
     UserBL userBL = new UserBL();
     int bankaccountid = 0;
        int bankid = userBL.CompanySetBankAccountID(bankaccountid);
 }