views:

19

answers:

1

I use the Global Resources feature, not only to centralize all my output strings but to make it easy when using Localization (witch is almost 90% of the time).

But I spread out my project into, not only the ASP.NET website, but with 2 Library projects as well.

my question is:

How can I use the ASP.NET Global Resource file in those Library projects?

as If I do

Resources.MyFilename.MyResourceStringName

the Library as no knowledge of the MyFilename class

alt text

What should I do in this cases?

A: 

Your going to have to use the ResourceManager class to accomplish this.

MSDN Resource Manager

Gary L Cox Jr
Got it... I just passed the ResourceManager that the Resource file is assign to, like: `ResourceManager rm = Resources.Strings.ResourceManager;` and then `myClass cl = new myClass(rm);`
balexandre