G
Guest
Hello,
Here is the scenario I need wome help with.
An ASP.Net 2.0 web application with the following structure and content:
Root
Root/App_LocalResources
Root/App_LocalResources/MyControl.ascx.resx
Root/Controls/MyControl.ascx
Root/Controls/MyControl.ascx.cs
I would like to use a localized value from the resx file in the My Control.
The code I use is
<asp:Literal id="SomeId" runat="server" text="<%$ Resources: MyString"%>"/>
where MyString is the the key of an entry in the MyControl.ascx.resx file.
The same code works well if the control is in the root folder. The moment I
move it into a subfolder it stops working. I tried to move the resource file
under a similar subfolder under App_LocalResources but with no success. Any
sample or mention of resource utilization from MS shows only pages hosted
under the root web.
I would appreciate if somebody can shed some light on the rules governing
the new structure. It was a lot easier in ASP.Net 1.1.
Thank you
Here is the scenario I need wome help with.
An ASP.Net 2.0 web application with the following structure and content:
Root
Root/App_LocalResources
Root/App_LocalResources/MyControl.ascx.resx
Root/Controls/MyControl.ascx
Root/Controls/MyControl.ascx.cs
I would like to use a localized value from the resx file in the My Control.
The code I use is
<asp:Literal id="SomeId" runat="server" text="<%$ Resources: MyString"%>"/>
where MyString is the the key of an entry in the MyControl.ascx.resx file.
The same code works well if the control is in the root folder. The moment I
move it into a subfolder it stops working. I tried to move the resource file
under a similar subfolder under App_LocalResources but with no success. Any
sample or mention of resource utilization from MS shows only pages hosted
under the root web.
I would appreciate if somebody can shed some light on the rules governing
the new structure. It was a lot easier in ASP.Net 1.1.
Thank you