I just started using explicit resource files. I performed these steps:
- In the root create the folder:
App_GlobalResources
- Add two resx files:
LocalizedText.en-us.resx
andLocalizedText.resx
- In both files I have a value called '
InstitutionTitle
' - In
LocalizedText.en-us.resx
the value is 'Institution
' and in theLocalizedText.resx
the value is 'Instelling
' In my
.aspx
file I have the following label:<asp:Label ID="lblInstitution" runat="server" Text="<%$ Resources:LocalizedText, InstitutionTitle %>" />
When I run this page, I always get the dutch version. Whether I set the language in my browser (FF and IE7) or not, I always get the dutch version. When I request the browsers' language I get en-us
(using: Response.Write(Request.Headers["Accept-Language"]);
).
What's the issue and how can I fix it?