Ejemplo n.º 1
0
 public void ddlAccountsTranIndex_Changed(Object sender, EventArgs e)
 {
     //caching needed
     TransactionBL tbl = new TransactionBL();
     DataSet ds = tbl.GetAllTransactions(ddlAccountsTran.SelectedValue);
     gvTransactions.DataSource = ds;
     gvTransactions.DataBind();
 }
Ejemplo n.º 2
0
    protected void btnDepositWithdrwal_Click(object sender, EventArgs e)
    {
        TransactionBL tbl = new TransactionBL();

           if (txtDepositAmount.Text != String.Empty)
           {
           tbl.InsertTransaction(ddlAccountsDepWdwl.SelectedValue, txtDepositAmount.Text, 1);
           txtDepositAmount.Text = "";
           }

           if (txtWithdrawlAmount.Text != String.Empty)
           {
           tbl.InsertTransaction(ddlAccountsDepWdwl.SelectedValue, txtWithdrawlAmount.Text, 2);
           txtWithdrawlAmount.Text = "";
           }
           BindCustomerData();
           BindAccountData();
    }