Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net Response.write和区域设置_.net_Vb.net_Locale - Fatal编程技术网

.net Response.write和区域设置

.net Response.write和区域设置,.net,vb.net,locale,.net,Vb.net,Locale,我使用的是VB.NET4.0,ISS7.0。 我想知道如何为所有应用程序设置默认语言环境 当我有回应时,问题就出现了。写下(str)数字时用“,”(德语符号)而不是“,”(美国符号) 从哪里.NET知道他需要使用德国语言环境 在我添加的每个js脚本中 Session.LCID = 3081;// to fix the ,->. 但这是解决问题的强力解决方案。是否有更优雅的方式来配置服务器/.NET 谢谢 Arman.您需要在选项中使用CultureInfo: 123.456(“C”,

我使用的是VB.NET4.0,ISS7.0。 我想知道如何为所有应用程序设置默认语言环境

当我有回应时,问题就出现了。写下(str)数字时用“,”(德语符号)而不是“,”(美国符号)

从哪里.NET知道他需要使用德国语言环境

在我添加的每个js脚本中

 Session.LCID = 3081;//  to fix the ,->.
但这是解决问题的强力解决方案。是否有更优雅的方式来配置服务器/.NET

谢谢

Arman.

您需要在选项中使用
CultureInfo

123.456(“C”,fr)->123,46欧元


例如,您可以在app.config中设置语言环境

加上

<configuration>
<system.web>
<globalization culture="CULTUREHERE, for example de-DE" />
</system.web>
</configuration>
谢谢我现在正在使用:
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE", false);