开发者

System.FormatException in asp.net mvc application

I'm getting a System.FormatException at runtime because the system culture is set to Spanish in which ',' is the decimal separator, and the user enters the '.' as decimal separator (because he or she uses the numpad).

I tried setting the follow开发者_开发问答ing in the web.config in order to set '.' as decimal separator but didn't work.

<globalization culture="en-US" uiCulture="en" />

I'm using telerik mvc numeric textbox and want to set the '.' as the decimal separator, so users can use the numpad to enter numbers.

Where do I set the decimal separator in a asp.net mvc application?


I would strongly recommend you reading the following blog post.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜