I'm looking at converting some apps that were previously using .resx files to contain string constants that should be able to be modified at runtime. However, most of what I've read leads me to believe .resx files are no longer being used this way. I'm getting
the impression that they should be converted to .resources files and loaded into the site. Any clarification on this?
At any rate, the project currently will not build when attempting to use the System.Resources.ResourceManager to access the resx file in App_GlobalResources.
None
0 Points
5 Posts
Are .resx files still used in 2.0?
Mar 10, 2006 11:22 AM|HubSharp|LINK
I'm looking at converting some apps that were previously using .resx files to contain string constants that should be able to be modified at runtime. However, most of what I've read leads me to believe .resx files are no longer being used this way. I'm getting the impression that they should be converted to .resources files and loaded into the site. Any clarification on this?
At any rate, the project currently will not build when attempting to use the System.Resources.ResourceManager to access the resx file in App_GlobalResources.
EdFinancial Services
www.edfinancial.com
Contributor
6294 Points
5754 Posts
ASPInsiders
Re: Are .resx files still used in 2.0?
Mar 10, 2006 11:43 AM|StrongTypes|LINK
.resx files are still used. As a matter of fact, there is a new way of accessing them that is more strongly typed:
Resources.<FileName>.Resource
If the file was named Resource.resx and the resource Title, then:
Resources.Resource.Title
HTH,
Ryan
Member
22 Points
700 Posts
Re: Are .resx files still used in 2.0?
Mar 10, 2006 03:39 PM|rmprimo|LINK
So you could not modify them at runtime NOT BEFORE before and NOT NOW.
Rob