Best practice for ASP.NET MVC resource files

后端 未结 3 1615
时光说笑
时光说笑 2020-11-30 01:31

What are the best usage of the following resource files.

  1. Properties → Resources (Phil used this resource for localization in DataAnnotation)
  2. App_Glo
3条回答
  •  心在旅途
    2020-11-30 01:58

    Properties → Resources can be seen outside of your views and strong types are generated when you compile your application.

    App_* is compiled by ASP.NET, when your views are compiled. They're only available in the view. See this page for global vs. local.

提交回复
热议问题