Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
comparevalidator control interprets date in the wrong format
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
VancouverMike  
View profile   Translate to Translated (View Original)
 More options 11 Apr 2008, 01:26
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: VancouverMike <VancouverM...@newsgroups.nospam>
Date: Thu, 10 Apr 2008 17:26:01 -0700
Local: Fri 11 Apr 2008 01:26
Subject: comparevalidator control interprets date in the wrong format
Hi there,

I have a web app written in 1.1 in ASP.net and C#. In the web app, I need to
compare two dates (from and to) from two textboxes on webpage to make sure
the to date is greater than or equal to from date, by using comparevalidator
control. The app is working fine in production server, but recently when I
put the code into development environment (Windows 2000 server), the
comparison is not working properly. Even I set the date format in Regional
Setting in Control Panel to be "dd/MM/yyyy", and the value in the two
textboxes are correct, the validator control still complains and shows error
message. It seems that the code always interprets the date in MM/dd/yyyy
format. I am wondering if I need to set some culture information for the
whole site so the whole site will interpret the date in the consistent
format? In my web.config file this is the globalization section:

    <globalization
            requestEncoding="utf-8"
            responseEncoding="utf-8"
   />

I would appreciate any help from you.

Regards,
Mike


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google