Asp.Net - Debugging why CheckBox has Checked = true after a postback?

My advice would be to build a simple page with only the checkbox and then see how that behaves. That way you can be absolutely sure that the problem isn't caused by strange interactions with other things on the page.

Already done that: as expected this doesn't happen on an empty page. The problem definitely is caused by strange interactions, but I just can't see what. – Justin Dec 4 '09 at 17:24.

What I'm seeing is that after a postback to the page, the checkbox somehow ends up with its Checked property set to true by the time I reach the Page_Load event, and I can't figure out why - at no point do I set the value of the checkbox or modify the checkbox in any way, there are no repeater controls, on this page and the CheckBox definitely isn't checked when I submit the form. Although the page itself is pretty complex, the interaction with the CheckBox itself is completely trivial - I've already spent a lot of time trying to figure out how the Checked value of this checkbox is being set to true, with no success - what debug / diagnostics are there to figure out why this checkbox is having its checked value changed? The exact same thing still happens - during OnInit() Checked is false, however by the time I get to Page_Load() checked is true.

The box is definitely unchecked on postback, and Request. Form"TelephonyEnabledCheckBox" is "0" (indicating that it is not checked). Whats going on?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions