Understanding ASP.NET Application Folders
page 5 of 11
by SANJIT SIL
Feedback
Average Rating: 
Views (Total / Last 10 Days): 58777/ 76

App_GlobalResources

In general, a resource file is nonexecutable text associated with the program. Typical resources are images, icon, text and auxiliary files. Application resources are stored outside of the application so that they can be recompiled and replaced without affecting and recompiling the application itself. It is like the App_LocalResources folders, but contains .resx files that are not bound to a specific page. Resource values in .resx files in the App_GlobalResource folders can be accessed programmatically from application code. You can add Assembly Resource Files (.resx) to this folder and they are dynamically compiled and made part of the solution for use by all your aspx pages in the application. Let us assume that we have created two resource files in this folder, Resource.resx and Resource.it.resx. The first file, Resource.resx, is the default language file using American English. The second file is for same text but for Italian language. If anyone invokes any page after setting browser culture Italian, then the information will come from Resource.it.resx file and for others the information will come from default Resource.resx file.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 2:10:02 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search