Accessing resource in App_LocalResources folder from root

S

schneider

Hi all,

I created a User Control "SlideShow.ascx" in my application's root.
Then I created a subfolder and an aspx page "MySlideShow1.aspx" in
there. I added an instance of the ascx control to this page. Now
here's my question: How can I access the aspx page's resource (e.g.
App_LocalResources/MySlideShow1.aspx.resx) from within the instance of
the ascx control? The code that wants to access the resource is
located in the ascx control because its common code is reused on many
other pages and I want to keep this. When I try
GetLocalResourceObject() in the control, I'm not addressing the page's
resource but the User Control's resource in root/App_LocalResources.
Thanks in advance!

Cheers, Hannes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top