my web app has Resource.resx there for my website name convention. everything works just fine. I have Lblcompany as name and "test" as Value

Now, I have separate wcf project and I added the my web app reference there.
my questions. how can I call the content from the resource.resx like I need to call
Lblcompany and get the value which is 'test' in this case?

Who is Participating?
Miguel OzSoftware EngineerCommented:
It depends how your web project is using the resx file:
Alternative 1: Add the resource file to WCF project as link.
No change to your project, but you need to remember you are sharing this file among projects

Alternative 2: Create a dll file.
My prefered solution because it clearly identifies where the resources are, but you may have to change your project a lot because the resource is now in a different location.
solution1368Author Commented:
mas_oz2003: I am not very good in code behind part, if you can show me the working codes, that will be great. Thanks
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.