Where is the whole list of default error messages for DataAnnotations at MVC 3

前端 未结 3 1741
太阳男子
太阳男子 2020-12-30 03:19

Yet another MVC localization question...

I\'m trying to localize an ASP.Net MVC 3 app using localized Resource files to display texts in the views, as recommended.

3条回答
  •  借酒劲吻你
    2020-12-30 03:44

    If you open the System.ComponentModel.DataAnnotations.dll with a tool like Reflector you can open the resource System.ComponentModel.DataAnnotations.Resources.DataAnnotationsResources.resources and have a look.

    You can also check out the System.ComponentModel.DataAnnotations.Resources.DataAnnotationsResources class that provides access to the resource strings.

提交回复
热议问题