asp.net, wcf, app_globalresources

I have App_GlobalResources with Resource.resx  and Resource.zh-HK in my web application.

And I also have WCF project with reference of my web application.

How can I get the Resource.resx information and put into my WCF project?
like the following codes in my wcf cs file.
The "Company Name" should be captured from App_GlobalResource file. Is it possible to do that? If yes, how? Thanks

            table.AddCell("General Information");
            table.AddCell(new Phrase("Company Name:", bodyFont));
            table.AddCell(new Phrase(DataLibs.CompanyName, bodyFont));
Webboy2008Asked:
Who is Participating?
 
apeterCommented:
Create a library project which will manage your resouces. Have this dll reference in both asp.net and WCF Project .  Hope this helps.
0
 
Webboy2008Author Commented:
How? Need sample codes
0
 
apeterCommented:
Hope u have already function to read your resource . Place this method and loading of resource manager in a separate project which of type, library component . Add this dll either to your wcf project or asp.net project .  Call the above function with a resource key as parameter. Hope it helps.
0
 
Webboy2008Author Commented:
I don't have function to read the resource file. and this is why I need sample codes to help.
Just response if you can show me sample codes in c#. Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.