You want to read data from App_GlobalResources,

you can try to use ResourceManager class for help.

Please check the following code:

 

Type type = typeof(System.Web.Compilation.BuildManager);

PropertyInfo propertyInfo = type.GetProperty("AppResourcesAssembly", 
BindingFlags.Static | 
BindingFlags.GetField | 
BindingFlags.NonPublic);

Assembly assembly = (Assembly) propertyInfo.GetValue(null, null);

string[] names = assembly.GetManifestResourceNames();
string resource = names[0];
string baseName = resource.Substring(0, resource.LastIndexOf('.'));

ResourceManager manager = new ResourceManager(baseName, assembly);

ResourceSet resources = manager.GetResourceSet(
System.Globalization.CultureInfo.CurrentCulture, true, true); 

IDictionaryEnumerator enumerator = resources.GetEnumerator();

while (enumerator.MoveNext())
{
string key = (string) enumerator.Key;
string value = (string)enumerator.Value;
}
http://www.velocityreviews.com/forums/t519773-appglobalresources-list-all-strings.html
http://jiricapeksharepoint.blogspot.com/2008/11/read-resource-string-from.html

Let me know whether that answers your questions, or if I've missed something.

相关文章:

  • 2021-06-24
  • 2021-11-24
  • 2022-01-08
  • 2021-08-13
  • 2021-07-06
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2021-07-10
  • 2021-09-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案