I have 3 text box fields. to represent a date
eg
DD MM YYYY
how can i validate only correct data is entered into each text box.
is it a regexpression??
i need to do this inside the ascx/aspx file rather than the .cs codebehind
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could validate each field with regexes, but it wouldn’t take into account different months with different numbers of days: you could enter invalid dates.
On the server side it could be validated with something like this: