We do internatializing (sp?) by this:
<asp:Label ID="labelPhone" runat="server"></asp:Label>
Then in the aspx.cs:
labelPhone.Text = (string)GetGlobalResourceObject("lang", "Phone") + ":";
But then if there are more labels I have to repeat:
labelPhone2.Text = (string)GetGlobalResourceObject("lang", "Phone") + ":";
labelPhone3.Text = (string)GetGlobalResourceObject("lang", "Phone") + ":";
Can this be avoided?
Like jQuery giving all identival labels the same class, then assigning text to that class:
$(".phonelabel").text("Telefon:");
Text="<%$ Resources:Label1TextKey %>". You could also use templates for specific fields, eg a Phone template that includes the localized label and field.GetGlobalResourceObjectcome from? Have you tried using Resource Files ?