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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -