Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 627
  • Last Modified:

public access to generated internal resource file from library

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
kdunnett
Asked:
kdunnett
1 Solution
 
JuckManCommented:
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
 
kdunnettAuthor Commented:
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now