![]() |
![]() |
![]() Welcome! and rules Joel on Software |
Idiotic ASP.NET problem I have a header user control on my page and this has a search box and a radio button list with the first button checked by default.
duh
It may be that the event handler for the radio button check events are firing after the page load events. That's why after selecting radio button2 and submittibng the form it thinks radio button 1 is checked, and then clicking radio button 1 and submitting and it thinks radio button 2 is checked. If you continue this pattern, you'll see that the viewstate if off by one (or 'behind by one'?). So, check the order iof events in the debugger is you are using vs.net, or response.write.
Hash550
Do you have more than one Form tag? I'm not positive but I beleive each form tag gets it's own __viewstate hidden text box. If that's the case then only the state of the controls in the form will be posted back to the server.
ian
|