I have the error:
Literal expressions like '<%$ Resources:Scorecards, String103%>' are
not allowed.
Use <asp:Literal runat="server" Text="<%$ Resources:Scorecards,
String103%>" /> instead.
But if I use the suggested
<asp:ListItem>
<asp:Literal runat="server" Text="<%$ Resources:Scorecards,
String63%>" />
</asp:ListItem>
instead, I get the error
Element 'Literal' is not a known element. This can occur if there is a
compilation error in the Web site.
So then, my question is: How to add localized listitems to a
dropdownlist ?
Thank you.
Alex
In other words, it's as simple as:
<asp:ListItem Text="<%$ Resources:Scorecards, String103%>"></
asp:ListItem>
or
<option selected="selected" value="<%$ Resources:Scorecards,
String79%>"></option>
instead of
<asp:ListItem><%$ Resources:Scorecards, String103%></asp:ListItem>
or
<option selected="selected"><%$ Resources:Scorecards, String79%></
option>
I am sorry for not having an option to withdraw a question.
Thanks again.