Validating dates with comparevalidator in 2 0

users are used to this, date formats arnt an issue.....many things in the pro's list to go against IMO Wind is your friend Matt Hi Matt Well, i am using AJAX for date.It looks like people out here are not giving me a precise answer.Since, VBScript won't work with Netscape browser, you cannot perform client-side validations using this language. You can easily place controls and write codes by using a text editor like Notepad or an IDE like Visual Studio . It accepts two important properties, In this article, you learned how to perform validations using Compare Validator, Custom Validator and Range Validator Controls.You have to learn Java Script or Classic ASP to perform validations. In the next part of this article, I'll examine the usages of other three controls. You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. From the GUI i m entering date in textbox1 in DD/MM/YYYY format.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 have to validate the date entered in textbox that it "should not be greater than or equal to current date". -- Abhishek You can use a compare validator, set the type to date.

After submitting the form, the server returns an error indicating null field provided there is no proper error handling techniques employed on the server side script.

Date being selected by the user is in DD/MM/YYYY format.

I am trying hard to get this thing working using javascript. Maybe you don't understand how the validation controls work? NET 2.0 Instant Results and Dreamweaver MX 2004 Want to be my colleague? My current approach is to use a standard textbox, a claendar extender from the Ajax Control Toolkit, a required field validator if necessary, and a compare validator.

Set the Value To Compare server-side to the current date.

Joe (Microsoft MVP - XML)Hi Joe I dont want to do any server side validation, i want to handle client side only, thats why i have posted my issue in the javascript forum.

What's up with that requirement that "validation should not be done by using ASP controls"? They are designed specifically for these kind of scenarios. NET model then I try to stick with that model even to the extent of inserting client-side code using the Client Script Manager instead of directly including Java Script.

You must have an account to comment. Please register or login here!