I’ve a radio button list which expands a section of a form depending on which item is selected. While I’ve got this working, how do I switch off the validation for the (additional) form items when the form is not in the expanded state? Do I group the expanded section form control validations and turn off that validation group? Is that the best way to do it and if so, how do I do that in C#.net?
Share
I would rewrite your answer as follows:
It’s easier to read (and thus, maintain) and it removes the
if (true) then (true) else (false)logic.