Last post Feb 03, 2011 02:29 PM by aredi
Apr 04, 2008 01:26 PM|Broodmdh|LINK
None of the controls on my page (all Literals) seem to work localization. I have the uiCulture and Culture parameters set to "auto" in my web.config, and the resource file name (events.resx) matches the name of the aspx page (events.aspx), but the app can't
seem to find any of the keys in the resource file. I don't understand what I'm doing wrong. Any ideas? This is the code that I'm using for the literals:
<asp:Literal runat="server" ID="literalCategory" Text="<%$ Resources:Category %>" />
Apr 04, 2008 02:02 PM|HosamKamel|LINK
Make sure your resource file placed in the App_LocalResource and try to make sure that your resource key and file is correct like below
<asp:Literal ID="Literal1" runat="server" meta:resourcekey="Literal1Resource1"
Text="<%$ Resources:Default2, HyperLinkFieldResource1.Text %>"></asp:Literal>
for a page called default2
Apr 04, 2008 02:21 PM|Broodmdh|LINK
The resource file is in the LocalResource folder, and key was correct, but I had the resource file name wrong. I didn't realize that it should be "events.aspx.resx" and not simply "events.resx". Live and learn. Thanks for the help.
Jun 01, 2010 10:42 AM|bignermo|LINK
Damn, I struggled the whole afternoon until I read your message :)
I moved my resources from being global to local and forgot to append the 'aspx' to the filename.
Thanks for the enlightning
Feb 03, 2011 02:29 PM|aredi|LINK
Encountered the same issue. Spent an hour trying to figure what was wrong with the files. thanks for your post.