Solved Resource.resx

Posted on 2012-09-14
Last Modified: 2012-10-08
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?

Question by:solution1368
    LVL 35

    Accepted Solution

    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.

    Author Comment

    mas_oz2003: I am not very good in code behind part, if you can show me the working codes, that will be great. Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now