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.
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.