I am trying to put all my lines in a resource file, something that I am doing for all Windows applications and Web Forms.
Works great when changing string values for labels and / or application localization.
I tried to add string values to my Web MVC project, but cannot access the resource file from the inline code in the view.
Is it possible? Is there a better way?
Where is your resource file? There are a few things you need to do.
"PublicResXFileCodeGenerator", "ResXFileCodeGenerator". , , .
PublicResXFileCodeGenerator
ResXFileCodeGenerator
, . , "" resx,
"Properties.Resource1.MyString"... "Resource1.MyString", "MvcApplication1.Properties.Resource1.MyString".
Properties.Resource1.MyString
Resource1.MyString
MvcApplication1.Properties.Resource1.MyString
, .
Source: https://habr.com/ru/post/1713397/More articles:Search Strategies for Different Data Sources - searchWhat is the "select 123.866" data type in SQL Server 2005? - castingBest T / SQL Formatting Add-in for SQL Server Management Studio - tsqlMaximizing concurrent downloads for a website - htmlHow to reorganize a class with overloaded constructors - constructorHow to stop a process with time constraints - javaIs there an easy way to add (#) to a file name when a duplicate file name is found? - c #Quality Guide for automake + autoconf and other subtleties of the build process? - perlGit or Subversion for TFS user - gitA recursive non-linear, unsorted tree search using C # lambas - c #All Articles