Problem with resources

L

Luigi

I'm experiencing this problem in asp.net 2.0:

Using in a web form a literal control:

<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Localization,
RES_Literal1 %>"></asp:Literal>

when rendered the page always shows the default language text, ignoring the
current language, so i need to manually load the resource with this code in
the page_load event:

this.Literal1.Text = Resources.Localization. RES_Literal1;

in this way it works, but it is really annoying...

Using the same control in a web user control, included in the same page, all
things works fine!

Please help,

Luigi
 

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

Top