Solved

ASP.NET 2005 - How can I access LocalResources from codebehind?

Posted on 2008-06-18
2
1,094 Views
Last Modified: 2013-11-26
Hi Experts,

I have only seen code where you can access the GlobalResources from the codebehind, but when it comes to LocalResources, the option is the aspx page using "meta:resourcekey"

Is there a way to access LocalResources from codebehind?
0
Comment
Question by:feesu
2 Comments
 
LVL 18

Accepted Solution

by:
Richard Lee earned 500 total points
ID: 21820830
Check this reference to open local resource files programmatically. http://msdn.microsoft.com/en-us/library/ms227982.aspx.

Excerpt: Call the GetLocalResourceObject or GetGlobalResourceObject method to read specific resources from a global or local resource file, respectively. These overloaded methods are available in the HttpContext and TemplateControl classes.
0
 

Author Closing Comment

by:feesu
ID: 31468675
thanks alot!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create an MVC5, Razor Widget 2 29
ASP.NET(C#) Eliminating weekends from a date range 2 46
Import MySQL data into MS Access using VB.Net interface 5 31
VS 2017 18 57
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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