Validation Controls checking for a particular value

R

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?
 
B

Brock Allen

You can use the <asp:RequiredFieldValidator> and set the InitialValue property
to be the "invalid" value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top