Solved

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

Posted on 2008-06-18
2
1,091 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

24 Experts available now in Live!

Get 1:1 Help Now