You can use a required field validator on dropdowns, but you should have a
first item in the dropdown such as --- Choose From Below --- and then you'll
need to add this to your page_load event
dropdown.selectedItem.value = ""
Then the validator won't recognize the first item as a valid item and it
will work.
By the way, all the validators do their validations by client-side
JavaScript that is generated for you (except the CustomValidator). They
also do their checks again server side in case someone tries to maliciously
bypass the client code.
Paul said:
I am trying to setup a field validator and tried using the control to
validate set to a dropdown list box but did not seem to work. Is there
anyway to set this up or do you need to use client side validation? Thanks