Decimal symbol issue in MVC, C#?
问题 I'm using MVC 5.0 I set the culture in config: <system.web> <globalization uiCulture="fa-IR" culture="fa-IR" /> </system.web> I have a model as the following: public class MyModel { [DisplayName("NbatPersent")] [Range(0, 100)] public double NbatPersent{ get; set; } } MVC shows the NbatPersent value in View like 22/5 and when I wanna submit form the form validator alert me The field NbatPersent must be a number. . It can't convert 22/5 to 22.5 It will be OK if I enter 22.5 but if the property