How do I programmatically access global resources?

Posted on 2008-11-13
Last Modified: 2013-11-07
Let's assume I have a web application with the following files:
So, the root of the web application is C:/Inetpub/wwwroot/.

And black.resx has the following data structure:
<root> ...
<data name="pie" xml:space="preserve">
<value>Custard Pie</value>

From Default.aspx, how can I programmatically access the contents of Black.resx?
Right now I'm just loading that file up into an XMLDocument object.  But I'd really like to be able to use something like ResourceManager so I can get at my data keys more easily.
Question by:matango
    1 Comment
    LVL 29

    Accepted Solution

    hi matango,
    You can refer how to use ResourceManager to access global resources dynamically:

    For more details regarding how to arrange global resources in more details:

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    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…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    733 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

    17 Experts available now in Live!

    Get 1:1 Help Now