Aug 27, 2008 06:32 PM|smcoxon|LINK
Hi, I dont think there is anything wrong with your code behind. I think the issue probably is because you have bound your checkbox to a field in your database within the aspx markup and have the AutoPostBack property set to true. Therefore, when you 'uncheck'
the checkbox, the code is correctly executed however, the checkbox posts back, which causes the page to reload, which rebinds the checkbox to the database value again and also clears the response.write text from the page. You can follow this through if you
put a debug 'Break' on the 'If' statement and then step through line by line.