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
Post a Comment