c# - How to set DateTime field as not required? -


i have entity datetime property not required. when form submitted validation fails if feld left blank. have set

clientvalidationenabled = false 

but validation still fails.

you need set field nullable.

the clientvalidationenabled related using javascript validate fields.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -