In ASP. NET, you can create resource files with different scopes.
Global Resource file: this means that any page or CodeRead these resource files.
Local resource files: these files store resources of a single ASP. NET webpage (. aspx file.
Global Resource file
The file in the region of the app_globalresources file is the global resource file. Any. resx file in the app_globalresources folder has a global range.
You can add the app_globalresources file hosts to add the ASP. NET file hosts in the solution on the right.
You can use the httpcontext. getglobalresourceobject method to retrieve the global resource file.
Local resource file
A local resource file is a file that only applies to one ASP. NET page (an ASP. NET page with extensions such as. aspx,. ascx, And. Master ).
The files in the app_localresources folder are local source files.
The app_localresources folder can exist in the application.ProgramWhich is different from the app_globalresources root folder.
Associate a group of resource files with a specific webpage by using the resource file name.
Httpcontext. getlocalresourceobject method: retrieve the local resource file