hello, i am new on asp.net and sql, currently i am making a bank system with some basic bank services, include deposit.
when i type in an account number and an amount and click "execute transaction", it should add the amount into the account and update the balance in the database.
in my database, i have an Account table, Account( AccountNumber, AccountType,balance)
here is my execute transaction button, what codes should i write here?
thanks a lot
protected void Button3_Click(object sender, EventArgs e)
{
SqlDataSource tra=new SqlDataSource();
tra.ConnectionString=ConfigurationManager.ConnectionStrings["shuliConnectionString"].ToString();
tra.InsertCommandType = SqlDataSourceCommandType.Text;
tra.InsertCommand = "INSERT INTO Account (balance) VALUES (@balance)";
}