i update Amount = Amount + txtAmut.Text
how can do?????
if (con.State == ConnectionState.Closed)
con.Open();
string UpdateQuery = "UPDATE Student SET DueDate= '" + txtNewDat.Text + "' WHERE Admission_ID= " + labstuid.Text + Environment.NewLine +
"UPDATE FeeDeposit SET Amount= '" + txtAmut.Text + "' WHERE Admission_ID= " + labstuid.Text;
SqlCommand cmd1 = new SqlCommand(UpdateQuery,con);
cmd1.ExecuteNonQuery();
Raja TRank #685 · 3.5K reputationPosted Oct 12, 2015, 12:04 AM EDT
Raja TRank #685 · 3.5K reputationPosted Oct 11, 2015, 10:59 PM EDT
vinod jangir111 reputationPosted Oct 11, 2015, 11:18 PM EDT
Raja TRank #685 · 3.5K reputationPosted Oct 11, 2015, 11:32 PM EDT
vinod jangir111 reputationPosted Oct 11, 2015, 11:43 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts