asp.net - Why is my datetime model property required -


i have vb.net mvc3 project (.net 3.5) , inside project model nullable datetime (datetime?).

this property has no <required()> annotation, yet reason not allowed left empty in form. when is, generates validation error of "a value required."

so, nullable thing important. once nullable, datetime can bound nothing after containing object, model, autobound controller parameter. if have same issue, sure set datetime new datetime, or else views flip out having nothing editorfor helpers.

its important, apparently, shut down visual studio every often. connection between iis express , visual studio seems flaky time time: looks older version of site kept getting deployed instead of version had in front of me.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -