Last post Mar 12, 2012 04:55 AM by bladde_89
Mar 05, 2012 04:53 PM|bladde_89|LINK
im using asp.net global resource to try and implement a two language website, i added a simple resource in the global resource file called **en-Us.resx** that contains:
Password | Text
Email | Text
then implemented it to a textbox within the default page:
<asp:TextBox runat="server" ID="loginEmail" Text="<%$ Resources:en-US, Email %>"
but when ever i run the page on **localhost** i get this error:
> The resource object with key '' was not found
i am using asp.net 4.0, what is the problem?
Mar 05, 2012 05:08 PM|Shellymn|LINK
Try to set the Build Action to "Content" from properties window of Global Resource file
Mar 12, 2012 03:27 AM|Allen Li - MSFT|LINK
Hi, please change your resource file name, for example: “en_US. resx” rather than “en-Us.resx”.
Mar 12, 2012 04:55 AM|bladde_89|LINK
Thanks for everone's help but i figuerd out the problem it was namin the resource files it needs to be named in the following order:
and that solved my problem.