Validating calendar dates in textbox asp Porno eskipe en linea
If you don't want this, you can turn off clientside scripting with the enableclientscript attribute. To do this, remove the controltocompare attribute, and add the valuetocompare attribute.
However, as you may have noticed, the content of the two textboxes is not checked before comparing it.
In my sql server date of birth is 1970-08-02 format. Then you could say that there were text in the date.
This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. I dont understand why and how I can solve this problem. If not a valid number, there are unapproved textual characters in a date.
I am also validating the the first Name and last Name, to see whether the user has enterd the first and second name. My code for this is as follows but it requires something more I am sure that would help Shoakat, the link suggested by Vijay, else he can build his own in ASP as suggested by brian since its good to have valid entry else it would bring some problems in date calculations.You can protect against empty fields with the Required Field Validator, and you can protect against wrong values like text with for instance a Regular Expression Validator, which we will show you how to use a bit later.