Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
working with windows forms
rashi bansal
Oct 28 2009 9:32 AM
2k
Reply
i m inserting values to database using executeNonQuery on debugging its working but changes r not reflected to database private void BtnCommit_Click(object sender, EventArgs e) {//dekho int amtwith = Convert.ToInt32(txtAmount.Text.Trim()); int bal = Balance() - amtwith; con.Open(); SqlCommand cmd = new SqlCommand("update balance set bal=@bal where cardno=@cno", con); cmd.Parameters.AddWithValue("@bal", bal); cmd.Parameters.AddWithValue("@cno",this.CardNo); cmd.ExecuteNonQuery(); balance is Rs." + bal); con.Close(); }
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
alternative solution for session
TAPI