Thank you for posting .
From your description, you're developing some custom ASP.NET web control,
and the webcontrol will use some resources in the ASP.NET application's
Global or Local Resource collection to perform some localization work.
Howerver, you found it works well when put in the ASP.NET app's App_Code
dir, when moved to a separate class library project, it stoped working,
correct?
Based on my understanding, as for the Global/Local Resources in ASP.NET
application, they can be retrieved through declarative syntax or
programmatic syntax. I think you are using the programmatic approach (the
GetGlobalResourceObject and GetLocalResourceObject method). If this is
the case, in your custom classlibrary project, if your custom control still
want to utilize these methods, you need to reference System.Web.dll
assembly, and then, use the HttpContext's static methods to reference the
two methods, e.g.
protected override void RenderContents(HtmlTextWriter output)
{
string value =HttpContext.GetGlobalResourceObject("strings",
"key1").ToString();
output.Write("<br/>Key1: " + value);
output.Write(Text);
}
The following msdn document has also mentioned the HttpContext class for
the two methods:
http://msdn2.microsoft.com/en-us/library/ms227982(VS.80).aspx
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)