I would like to know how to update a checkbox using an update statement in the code behind.
I am using a gridview with order information with a checkbox to set if the order is completed or not. Initially it is set to false.
I have a dropdownlist with the order id number that I am using in my update statement (the variable I use is OrderID)
I tried this update statement but it seems like it is not working:
strSQL = "UPDATE Order SET OrderCompleted = true WHERE OrderID = " + OrderID;
Can anyone help, I have been researching this for awhile now.
1
, not totrue
.