I'm making a page for dynamically handling surveys. The questions and their related controls (multiple choice, text) are stored in a DB and fed into a page on loading. For some questions, particular answers will need to disable other questions' controls as they are no longer valid in context. For example, If the survey asks the user if they've worked in the past year and they respond "No" then I need to disable the choices for the "how much did you earn" question. The tricky part is that I need to be able to undo this action as well. If the user now selects "Yes" to the first question, I have to re-enable all the earnings choices.
There are too many controls to always trigger an event whenever something is clicked, so I'd like to limit my postbacks to only those option which can cause a skip to occur. This becomes a problem for Radio Buttons and DropDown Lists, as I only want the selection/deselection of particular options to cause postback and the others to do nothing (though selection of such an "inert" option will cause postback if it causes the deselection of a skip-causing control). Not having an equivalent "CheckedChanged" event for Radio Buttons as there is for Checkboxes is irritating.
My solution thus far (for Radio Buttons) is to add t
View Complete Post