H
HockeyFan
Is there good way to set up a validator on 2 textboxes, so that at
least one of the two has to have something besides blanks? One
approach I thought about was to create a hidden field and use
javascript to update that field from either of the 2 textboxes, and
then set the validator on that one field. However, I don't really
like this approach and would like to see another way of doing it.
If nothing else, will I have to catch this in the codebehind, and if
so, what's the best approach for notifying that user that one of those
2 fields needs to be filled in?
least one of the two has to have something besides blanks? One
approach I thought about was to create a hidden field and use
javascript to update that field from either of the 2 textboxes, and
then set the validator on that one field. However, I don't really
like this approach and would like to see another way of doing it.
If nothing else, will I have to catch this in the codebehind, and if
so, what's the best approach for notifying that user that one of those
2 fields needs to be filled in?