Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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