Click here to Skip to main content
15,902,888 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to require field validation not select value of dropdownlist in asp.net 4.0?
Posted
Comments
ujjwal uniyal 31-Mar-12 7:21am    
Explain briefly......
ZurdoDev 2-Apr-12 9:07am    
Your question does not make sense. Please explain more clearly.

From what I understand, you want to validate if a value has been selected on the Dropdownlist. In that case, you can use a RequiredFieldValidator[^]. There are plenty of examples if you just search. Here are just few of those I found useful.

http://forums.asp.net/t/1296491.aspx/1[^]
http://stackoverflow.com/questions/5310609/dropdownlist-validation-in-asp-net-using-required-field-validator[^]
http://asp-net-example.blogspot.com/2008/10/dropdownlist-example-how-to-validate.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900