Click here to Skip to main content
15,918,624 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I want to validate my form, the form contains email, username, password and DOB
i want to use asp.net's built in validators, please suggest me validators for these fields
Posted
Comments
ZurdoDev 28-Feb-12 9:40am    
What is the question? You said you want to use the built-in validators, so go ahead and drag them onto your form from the toolbox.
Sergey Alexandrovich Kryukov 28-Feb-12 23:30pm    
Not a question.
--SA
AtifImtiaz 29-Feb-12 0:32am    
so let me explain that again, sir i want to use range validator to validate DOB,and regular expression validator to validate email. kindly help me out, i've validated half of my form using the answers given by others

Validation Server Controls
[^]

Username --> RequiredFieldValidator to ensure name is entered.
Password (and Confirm Password) --> CompareValidator to check if they match, RegularExpressionValidator to enforce password policy.
DOB --> CustomValidator.
Email --> RegularExpressionValidator.
 
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