views:

23

answers:

0

I have an ASP.Net website, "MyApp", which contains the following resources files:

  1. WebResources.resx
  2. WebResources.es.resx

The website references a library project, "MyLib" from which I want to access those resources files. Here is the code I'm attempting:

var rm = new ResourceManager("MyApp", Assembly.GetExecutingAssembly());
subject = rm.GetString("HelloMessage"); //always string.empty

The problem is that the executing assembly is always "MyLib" instead of "MyApp". Is it possible to access the resource files embedded in the website project from a library project?

Thanks for any help, -Keith