Home All Groups Group Topic Archive Search About

Validation Controls checking for a particular value

Author
14 Jun 2005 4:03 PM
robin9876
Using the builtin validation controls, how do you raise an error
message if the selected text or value of a drop down list is a specific
option?

Author
14 Jun 2005 4:15 PM
Brock Allen
You can use the <asp:RequiredFieldValidator> and set the InitialValue property
to be the "invalid" value.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> Using the builtin validation controls, how do you raise an error
> message if the selected text or value of a drop down list is a
> specific option?
>