Last post Jan 08, 2009 01:19 AM by Albert877
Jan 07, 2009 10:55 PM|Albert877|LINK
I have a question about sharing resources between projects.
Currently, I have a C# solution with three projects. One is window based named “MyClient”. Second it web based named “MyWeb” and the last one is window based project named “MyCommon” that used to share functions and configurations.
Now, I would like to share the resource file “MyResource.resx” in “MyCommon” between “MyClient” and “MyWeb”. In ASP coding, I can bind resource by <%$ Resources:MyResource, MyLabelName %> to controls if MyResource is under MyWeb/App_GlobalResources. I tried
many ways but still got errors on access the resources at “MyCommon”. Is there any possible way to bind the resource between projects? Or my approach is wrong? Please comment. Thanks a lot!
Jan 07, 2009 11:38 PM|anonymouswrites|LINK
This article might help.
Jan 08, 2009 01:19 AM|Albert877|LINK
Now, I use <%=MyCommon.MyReources.MyLabel%> in ASPX page and it works fine!
Thanks a lot~