How does asp.net mvc figures out validation error message for particular field?
I got class with 3 fields where one of them is with type DateTime. When i post form and no data are provided for DateTime field and it is marked as Required, validation summary can't figure out field name and shows "A value is required" instead of expected "The electronic version arrival date is required". Other fields got correct msg.
Can't understand what I'm missing.
asked Aug 27, 2010 at 9:06
Arnis Lapsa
47.6k30 gold badges119 silver badges198 bronze badges
-
This question is similar to: how to override the "A value is required." while validating a datetime format in asp.net mvc view?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.aynber– aynber2025年04月08日 16:45:16 +00:00Commented Apr 8 at 16:45
1 Answer 1
Found myself.
answered Aug 27, 2010 at 9:09
Arnis Lapsa
47.6k30 gold badges119 silver badges198 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-cs