T
Thor W Hammer
DESIGNER:
<asp:Button runat="server" ID="b1" Text="<%$ Resources
roducts,
PopularProducts %>" />
CODE BEHIND:
protected void Page_PreRender(object sender, EventArgs e)
{
Response.Write(Resources.Products.PopularProducts);
}
These two should both be linking to the same resource, but the problem is
that only the one in code behind writes the correct language. The first one
always gets the text from the default resource file and not the one with the
current/correct culture. I have set the current thread's cultures in the
base-page. Why isn't the two examples giving the same value?
Twh
<asp:Button runat="server" ID="b1" Text="<%$ Resources
PopularProducts %>" />
CODE BEHIND:
protected void Page_PreRender(object sender, EventArgs e)
{
Response.Write(Resources.Products.PopularProducts);
}
These two should both be linking to the same resource, but the problem is
that only the one in code behind writes the correct language. The first one
always gets the text from the default resource file and not the one with the
current/correct culture. I have set the current thread's cultures in the
base-page. Why isn't the two examples giving the same value?
Twh