Solved

public access to generated internal resource file from library

Posted on 2008-06-25
2
623 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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