Local Resources:
- Local resource is specific to a single Web page and used for providing versions of a Web page in different languages.
- Local resources must be stored in App_LocalResources sub folder.
- Local resources must be named in format [.language / language and culture].resx.
Ex: Default.aspx.resx- Base resource file. This is the default, or fallback, resource file.
Default.aspx.de.resx- A resource file for German etc.
Global Resources:
Global Resources Localization Suggestion for ASP.NET
- Global resource can be read from any page or code that is in the application.
-
Global resource must be stored in App_GlobalResources at the root of the application.
// Get the global resource string. try { globalresourcestring = (String)GetGlobalResourceObject("MyResource", "GlobalResourceString1"); } catch { globalresourcestring = "Could not find global resource."; }