简体   繁体   中英

Asp.net mvc, validation error msg

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.

找到了自己。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM