B
Bill Cohagan
Is it possible to have a validation control whose ControlToValidate is in
fact a hidden control? When I try this I find that the validator apparently
does not fire. If I make the control Visible="true", then the validator
fires as expected.
I realize that in a sense it doesn't make sense to validate such a control
since the user can't do anything (directly) to cure the problem. In my case
however the hidden control contains information representing a bit of state.
A simplified case would be that I don't want button A to submit until button
B has already been clicked (and the form submitted.) I "remember" whether
the form has had a "B submit" in a hidden field. I use validation groups to
differentiate between the two submit buttons.
Any suggestions?
Bill
fact a hidden control? When I try this I find that the validator apparently
does not fire. If I make the control Visible="true", then the validator
fires as expected.
I realize that in a sense it doesn't make sense to validate such a control
since the user can't do anything (directly) to cure the problem. In my case
however the hidden control contains information representing a bit of state.
A simplified case would be that I don't want button A to submit until button
B has already been clicked (and the form submitted.) I "remember" whether
the form has had a "B submit" in a hidden field. I use validation groups to
differentiate between the two submit buttons.
Any suggestions?
Bill