MVC4 localization. Accessing resx from view

前端 未结 6 1290
逝去的感伤
逝去的感伤 2020-12-14 20:08

In my view I would like to access resource strings from the specific local resource on that file.. Just as you know it from web-forms:

(string)GetLocalResour         


        
6条回答
  •  暖寄归人
    2020-12-14 20:56

    In Resources Designer in Visual Studio on the top we have a Combo Box with a label : Access Modifier, usually it is set to : internal, to make it work set it to : Public.

提交回复
热议问题