Last post Apr 02, 2020 11:49 AM by mgebhard
Mar 30, 2020 02:46 PM|JamieP1|LINK
Mar 30, 2020 03:56 PM|mgebhard|LINK
Is there a way to do the same for Global Resource files? I have a number of controls so don't fancy doing this manually?
Yes, the standard docs cover global resource files.
In ASP.NET, you can create resource files that have different scope. You can create resource files that are global, which means that you can read the resource file from any page or code that is in the Web site. You can also create local resource files,
which store resources for a single ASP.NET Web page (.aspx file).
You create a global resource file by putting it in the reserved folder App_GlobalResources at the root of the application. Any .resx file that is in the App_GlobalResources folder has global scope. Additionally, ASP.NET generates a strongly typed object
that gives you a simple way to programmatically access global resources.
Mar 30, 2020 06:42 PM|JamieP1|LINK
Mar 30, 2020 07:15 PM|mgebhard|LINK
I do not understand the problem you are trying to solve. ASP.NET Web Forms has a global resource file which is global to the entire application. There are also resource files that go with the pages. Each page has it's own resource file.
Can you explain what the following means? What is a global file in your application?
I'm trying to replicate the local resource process but for global files?
Apr 02, 2020 11:40 AM|JamieP1|LINK
Apr 02, 2020 11:49 AM|mgebhard|LINK
What I was trying to achieve was the code generated like local resource tool does for the controls.
I assume I can't?
I'm not aware of a tool that has this feature.