How to set decimal separators in ASP.NET MVC controllers?

前端 未结 4 1250
花落未央
花落未央 2020-11-29 23:39

I\'m working with the NerdDinner application trying to teach myself ASP.NET MVC. However, I have stumbled upon a problem with globalization, where my server presents floatin

4条回答
  •  感情败类
    2020-11-30 00:00

    Set this in your web.config

      
        
    

    You appear to be using a server that is setup with a language that uses comma's instead of decimal places. You can adjust the culture to one that uses the comma's in a way that your application is designed, such as en-US.

提交回复
热议问题