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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -