Can I use RequireFieldValidator or should I just try to write code to check two textboxes entry?
-
Hi. Can I use RequireFieldValidator control to check for the blank data? There, both of the two textboxes must not be blank. But it'll be ok if only one of these two textbox must be entered data. If with RequireFieldValidator, how can I use with it? Thanks.
-
Hi. Can I use RequireFieldValidator control to check for the blank data? There, both of the two textboxes must not be blank. But it'll be ok if only one of these two textbox must be entered data. If with RequireFieldValidator, how can I use with it? Thanks.
Strictly speaking, this question should be in the ASP.NET forum, and no - a required field validator validates that a field is required, not that one of two fields is required. You'll need to write a custom validator.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.