473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

rangevalidator date problem

Hi,

I am writing a page that contains a texbox, a calendar, and a
rangevalidator. The range validator is testing the textbox for date values.
There is an event, set up to fire, when the calendar's date has been changed,
and in the event body, i am using the calendar's function to transform the
date to string.

gasday.Text = Calendar1.SelectedDate.ToShortDateString();

In the page header, there is a culture setting:
<%@ Page Culture="hu-HU" Lang.....

My problem is, that if i click the calendar, the selected date is appearing
in the textbox, but the range validator is showing it's error message,
becouse the date is not in the right format.

Examples of dates:
date produced by the calendar: "2005.05.13." (this is the good date in
hungarian spelling)
correct date: "2005.05.13" (that's ok for the rangevalidator control)

It looks like the control's validation is'nt following the culture setting
in the header.

What do i wrong?

Thanks,
Arpicheck
Nov 19 '05 #1
0 1270

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: charliewest | last post by:
I've configured a RangeValidator control on a WebForm, using ASP.NET, and have set the type to string, the max value to 100, and min value to 1, however, the control to validate always throws an...
2
by: D. Shane Fowlkes | last post by:
This seems simple enough but why can't I get it to check the input BETWEEN the two ranges I specify? If I set the Min value to 1 and the Max to 10, it will ONLY validate 1 OR 10....not 2 thru 9. ...
2
by: Johannes Hammersen | last post by:
Hi, when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get an error, that 01.01.0001 can not be converted to a date. But the DateType can be 01.01.0001....
6
by: jk | last post by:
Looking through WebUIValidation.js, I discovered that the standard validators don't cater for non-numeric date formats (e.g. dd-MMM-yyyy) which I would like to do To keep code to a minimum, I...
1
by: COHENMARVIN | last post by:
I'm trying to get a rangevalidator to work. Normally this is easy, but here I'm trying to make the rangevalidator check a range that is from variables. Here is the code. Its simple, but it...
11
by: Axel Dahmen | last post by:
Hi, I'm working in a team developing an international website. When I set the page's CultureInfo to Hungarian (hu-HU) then the RangeValidator doesn't seem to be able to parse a TextBox's date...
1
by: Cirene | last post by:
Here's my RangeValidator <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtSVDV" ErrorMessage="RangeValidator" MaximumValue="0" MinimumValue="-100" Type="Double">Make...
0
by: Andrew Han | last post by:
I have a simple textbox where a user can enter a numeric value. The RangeValidator works perfectly well to determine if the value is a number of whatever type I specify AND to determine if the...
1
by: Cirene | last post by:
I have a rangevalidator as follows... <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="InvoicePriceTextBox" ErrorMessage="0-999999" MaximumValue="999999"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.