HELP Localization doesn't work

L

Luigi

I'm trying this example for my application

http://msdn2.microsoft.com/en-us/library/fw69ke6f.aspx

(Explicit Localization with ASP.NET)

but it doesn't work: it always display the default language, not switching
to other languages in resx files.

Please help!

using this code
<asp:Label ID="lblName" runat="server" Text="<%$ Resources:Resource, lblName
%>"></asp:Label>

doesn't work,

instead forcing in page preinit event

this.lblName.Text = Resources.Resource.lblName;

works..

why this behaviour?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top