B
Basildk
Hi.
I have a strange problem. We have an asp.net application running on
several server with different setups.
On 2 of our servers we experience that the globalization settings are
misbehaving.
We have boiled the problem down to this: (exemplified by a very simple
page)
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Thread.CurrentThread.CurrentCulture.Name + "<br />");
Response.Write(2.ToString("c", Thread.CurrentThread.CurrentCulture) +
"<br />");
Response.Write(DateTime.Now.ToString() + "<br />");
}
Output is the following:
da-DK
$2.00
8/30/2007 5:14:02 PM
Since currentCulture is "da-DK" i would have expected the something
like the following:
kr 2.00
30-08-2007
This is in fact the result coming from the servers that are working.
How come the Culture is not formatting the values correctly?
Thanks for the help..
I have a strange problem. We have an asp.net application running on
several server with different setups.
On 2 of our servers we experience that the globalization settings are
misbehaving.
We have boiled the problem down to this: (exemplified by a very simple
page)
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Thread.CurrentThread.CurrentCulture.Name + "<br />");
Response.Write(2.ToString("c", Thread.CurrentThread.CurrentCulture) +
"<br />");
Response.Write(DateTime.Now.ToString() + "<br />");
}
Output is the following:
da-DK
$2.00
8/30/2007 5:14:02 PM
Since currentCulture is "da-DK" i would have expected the something
like the following:
kr 2.00
30-08-2007
This is in fact the result coming from the servers that are working.
How come the Culture is not formatting the values correctly?
Thanks for the help..