I can't get implicit localisation of resource strings, as described in various books and articles on globalisation, to work, even though explicit localisation and accessing the resource strings programmatically works fine. Can anybody offer any clues as to what I might be doing wrong?
I'm generating the resource file using the VS2005 "Tools -> Generate Local Resource" which automatically creates the required local resource file eg MyPage.resx and generates the required implicit localisation in the source. ie:
<asp
:Label ID="lclErrorNumber2" runat="server" meta:resourcekey="lclErrorNumber2" />
but I never get the required resource string back and in Design View (where the contents should automatically be retrieved if I'm reading the articles correctly) all I see is the name of the control.
The problem doesn't seem to be with the resource file itself because an explicit declaration like this works fine:
<asp:Label ID="lclErrorNumber2" runat="server" Text="<%$ Resources: lclErrorNumber2 %>" />
as does trying to access the resource string programmatically:
string temp2 = this.GetLocalResourceObject("lclErrorNumber2").ToString();
Any advice/clues as to possible steps I'm missing would be much appreciated! Have tried variations on the Label control and the new Localize control with no joy and would prefer not to have to resort to Explicit localisation to get round the problem. Thanks.