Solved

public access to generated internal resource file from library

Posted on 2008-06-25
2
620 Views
Last Modified: 2012-06-21
Good Day,

c#, .net 2.0, vs.net 2005

I have two projects, one being the web project and the other is the library.  Within the library we have some resource files we are using for errors and the like.  They got auto generate via ResXFileCodeGenerator, and notice that they are all internal.  

I would like to gain access to these resouce files from the web app.  Is there an easy way of doing this?

Thanks in advance,
Kris
0
Comment
Question by:kdunnett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
JuckMan earned 500 total points
ID: 21868477
You create a helper method in your library that could access the resource file and return the results. In this way your web application does not need to know where the resources are stored.

For example your library could implement object GetResourceValue(string resourceName)
when this method is called read the resource file part of the assembly and if the specified resourceName exists read it and return to the caller..
0
 

Author Comment

by:kdunnett
ID: 21909656
JuckMan,

Sorry for the lateness... got sided tracked on another project.

I figured that was the way... was hoping that there could of been something 'more cool'.

Thanks... you get the points.
Kris
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio hangs on running project 6 62
How to identify a paragraph in the body of text? 2 55
asp.net figure out error 3 26
Multi-Column Repeater 3 29
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.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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