Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1105
  • Last Modified:

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

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
feesu
Asked:
feesu
1 Solution
 
Richard LeeSoftware EnthusiastCommented:
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
 
feesuAuthor Commented:
thanks alot!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now