flnMichael
Programmer
Hey,
Can someone tell me what I'm doing wrong here. I have a textbox being filled via database, but when I change the value of the textbox and hit update, the update query I have set up still sends the old value of the textbox, not the changed value.
It actually seems the syntax of the code is right, but it's just not passing the right value into the update query. Any help would be appreciated.
Thanks
Mike
Can someone tell me what I'm doing wrong here. I have a textbox being filled via database, but when I change the value of the textbox and hit update, the update query I have set up still sends the old value of the textbox, not the changed value.
Code:
string UpdateCmd = "UPDATE MSHeaders SET value = '"+UUT_Revtxt.Text+"' where MSID = "+myMSID+" and HeaderID = "+myHeaderID[j];
SqlConnection myConnSelect = new SqlConnection(strConnect);
myConnSelect.Open();
myCommand = new SqlCommand(UpdateCmd, myConnSelect);
It actually seems the syntax of the code is right, but it's just not passing the right value into the update query. Any help would be appreciated.
Thanks
Mike