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"; } <h2>Create</h2> @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) <fieldset> <legend>GpsCoordinateViewModel</legend> <div class="editor-label"> @Html.LabelFor(model =>