asp.net mvc - Encountered Validation Error in double? datatype in MVC3 C# -
hi guys new mvc 3 , while debugging project, encountered error in field of miles
, , unusual error appeared says the field miles must number.
upon entering .2
, 135.
whereas automatic value before , after decimal point zero, preventing me saving values , i'm here searching solutions.
i hope can me this.
this code snippet:
<div> <div class="label"> @html.labelfor(m => m.miles) @html.validationmessagefor(m => m.miles) </div> <div class="field"> @html.textboxfor(m => m.miles) </div> </div>
and here datatype in model:
public nullable<double> miles { get; set; }
Comments
Post a Comment