asp.net - Razor doesn't take the value from the view model for Input of Date type -


in model have field date, in view use following edit it:

@html.textboxfor(m => m.date, new { type = "date"}) 

while proper value in controller when form submitted, initial value not set in view (it's empty)

my view model:

[datatype(datatype.date)] public datetime date { get; set; } 

i cannot find missing here...


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -