Your code is perfectly valid for a form, I have no idea why you only found aspx results.
You can find out how many records were affected by your , I think via an argument to ExecuteNonQuery (or perhaps a property of the command). Based on what you have said it will almost certainly be 0, but you should check anyway.
Assuming that returns 0, the next step is to add a Watch for update.Parameters , and check what the values are - you may be surprised.
If that is valid too, check the data in the table to ensure that there is at least one record that exactly matches both conditions in your Where clause (including the parameter value).
ok so now this thing returns everything correctly from the sql database. The button on the left under the signout section is suppose to run the code above. after i click the button it does initiate the close command. But if i also double click one of the cells it closes as well. I think im missing something. more and i think my button control is responding to any cell instead of just the button. I think because of this