A
Axel Dahmen
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 value (Exception message see below)
correctly.
The TextBox's value is coming from the DateTime.Now.ToShortDateString()
function, so it's an original .NET value.
Can someone please help me out on this? I need to be able to get this
application running until end of the week.
TIA,
Axel Dahmen
------------------------------
The value '2006. 07. 11.' of the MaximumValue property of 'rngDate' cannot
be converted to type 'Date'.
Exception Details: System.Web.HttpException: The value '2006. 07. 11.' of
the MaximumValue property of 'rngDate' cannot be converted to type 'Date'.
Stack Trace:
[HttpException (0x80004005): The value '2006. 07. 11.' of the MaximumValue
property of 'rngDate' cannot be converted to type 'Date'.]
System.Web.UI.WebControls.RangeValidator.ControlPropertiesValid()
System.Web.UI.WebControls.BaseValidator.get_PropertiesValid()
System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
...
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 value (Exception message see below)
correctly.
The TextBox's value is coming from the DateTime.Now.ToShortDateString()
function, so it's an original .NET value.
Can someone please help me out on this? I need to be able to get this
application running until end of the week.
TIA,
Axel Dahmen
------------------------------
The value '2006. 07. 11.' of the MaximumValue property of 'rngDate' cannot
be converted to type 'Date'.
Exception Details: System.Web.HttpException: The value '2006. 07. 11.' of
the MaximumValue property of 'rngDate' cannot be converted to type 'Date'.
Stack Trace:
[HttpException (0x80004005): The value '2006. 07. 11.' of the MaximumValue
property of 'rngDate' cannot be converted to type 'Date'.]
System.Web.UI.WebControls.RangeValidator.ControlPropertiesValid()
System.Web.UI.WebControls.BaseValidator.get_PropertiesValid()
System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
...