Validating dates with a CompareValidator

P

Peter Blum

The server dictates format. It always uses the ShortDatePattern and
DateSeparator properties of the CultureInfo.DateTimeFormatInfo object that
is running with the current thread.

Remember that client-side validation is a bonus. Server side validation is
manditory because many browsers don't support client-side validation. (Only
DHTML browsers like IE and IE/Mac support client-side.) Since the server
cannot know what format the client is using, it must dictate to the user the
format. Often web sites determine the user's format by asking them to
specify their language or culture. They can also check the
Request.UserLanguages property.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top