ASP.NET MVC Form and double fields
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm developing an asp.net mvc portal to manage GPS coordinates using localDB. My model is: public class GpsCoordinateViewModel { double Latitute { get ; set ; } double Longitude { get ; set ; } } the autogenerated adn related View to create a new GpsCoordinate is: @{ ViewBag . Title = "Create" ; } Create @using ( Html . BeginForm ()) { @Html . AntiForgeryToken () @Html . ValidationSummary ( true ) GpsCoordinateViewModel @Html . LabelFor ( model => model . Latitude ) @Html . EditorFor ( model => model . Latitude ) @Html .