[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

asp.net, wcf, app_globalresources

Posted on 2012-08-15
4
Medium Priority
?
769 Views
Last Modified: 2012-09-11
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));
0
Comment
Question by:Webboy2008
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
apeter earned 2000 total points
ID: 38302522
Create a library project which will manage your resouces. Have this dll reference in both asp.net and WCF Project .  Hope this helps.
0
 

Author Comment

by:Webboy2008
ID: 38307111
How? Need sample codes
0
 
LVL 25

Expert Comment

by:apeter
ID: 38308431
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
 

Author Comment

by:Webboy2008
ID: 38308863
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question