Hi,
at client if RequiredFieldValidator fails, that already prevents the page
from posting back (since one of the validators indicates error).
It is so that if your control has no input/selection whatsoever,
RequiredFieldValidator is the one catching that, and no other validators
will be yet invoked (e.g by default no other validator than RFV is applied
for empty input). Then if there is some input, RFV will pass validation, and
other, more specialized validators kick in, like check the correctness of
the given input, as the input now exists.
Mechanically it happens so that if validation control is passed empty input
value, it returns true as outcome of the validation. This way, it's left up
to the RFV in the first place to check for empty inputs.
You can tweak this behaviour with custom validators / 3rd party validator
controls & components (Professional Validation And More for instance)
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"James" <> wrote in message
news: oups.com...
> Well, after I placed this post, I tried changing "Enable Client Script"
> to FALSE on the RequiredFieldValidator control.
>
> This allowed my control to work properly!
>
> I'm not using client side scripting, so this not an issue. But it
> would seem strange that this would have to be the case.
>
> Perhaps somebody could explain why this would need to be done?
>
> Thanks!
> James
>