asp.net mvc - Date range validation with Entity Framework 4 data annotations -
I provide the model for an ASP.NET MVC3 / Razor2 web application using the outline of the unit 4. I am using data annotation to implement verification. I have to restrict some dates to the extent accepted by the SQL SmallTyTime type.
My problem is that I can not get range attribute to work correctly for a date field, in the question metadata model for the field is the definition:
With this code, whatever value I enter in the date field, it is considered invalid by application. In the case of its' relevant, I am also using the JQuery-UI Date Selector in the field in question.
Can anyone help, please?
After
where the error occurs, but my guess is that this client side (?) JQuery validation that does not work well with. To verify, disable jQuery validation and pass valid input (server) verification. To get around this, you need to enter your date range verification, e.g.
Alternatively you can look at the packages as or if they can see the problem can be used to solve.
Comments
Post a Comment