Jan 13, 2014 02:39 PM|kaushalparik27|LINK
At least one resource file has to be non-culture-specific. That file has to have a matching .designer file. That is
one resource file need to be without the .language extension.
Here is my finding:
I created a label:
<form id="form1" runat="server">
<asp:Label ID="lblName" runat="server" Text="<%$ Resources: lblPassword.Text %>"></asp:Label>
Set the web.config:
<compilation debug="true" targetFramework="4.5"/>
<globalization uiCulture="en-US" culture="en-US"/>
Created two .resx files as below:
And the result I got is "Password", That is because I have explicitly set the culture as en-US. However, to make it work, I have to have a resource file in my solution for each aspx/ascx which is not language specific and matching the aspx/ascx
file name. I would suggest to use that resource file as default culture resource file like en-US instead of creating specific resource file for en-US. I hope that make sense.
hope it helps./.