Thread View: borland.public.csharpbuilder.aspdotnet.general
2 messages
2 total messages
Started by FERNANDO
Wed, 30 Mar 2005 19:03
Compare validator problem (validating dates types)
Author: FERNANDO
Date: Wed, 30 Mar 2005 19:03
Date: Wed, 30 Mar 2005 19:03
11 lines
1569 bytes
1569 bytes
I'm using a not american type date (dd/mm/yyyy), but I couldn't use a compare validator because it not works with this date's format. Other problem is that if I send results to database it causes an error:
Its not possible determine the order year, month and date from M/d/yyyy.
I had tried to configure the Web.Config on Globalization with culture pt-BR (portuguese - Brazil, where this page will be used) and put this code on load page:
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("pt-BR")
But nothing causes result, if anyone could help me I would a preciate.
Thank you very much!!
Re: Compare validator problem (validating dates types)
Author: Marc Rohloff TeamB
Date: Wed, 30 Mar 2005 23:33
Date: Wed, 30 Mar 2005 23:33
11 lines
1478 bytes
1478 bytes
On 30 Mar 2005 11:03:21 -0800, FERNANDO wrote: > But nothing causes result, if anyone could help me I would a preciate. Have you tried setting the UI Culture? If you are trying to validate client-side then this probabaly won't work though. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads