How to add localized listitems to a dropdownlist ?
am 15.04.2008 23:58:49 von RaduI have a global resource, Scorecards.resx.
For stuff like
Text="*"
ErrorMessage= "<%$ Resources:Scorecards, String66 %>"
Display="Dynamic"
OnServerValidate="ServerValidate"
runat="server">
apparently the syntax
....= "<%$ Resources:Scorecards, String66 %>"
works, but in the HTML
>
asp:ListItem>
asp:ListItem>
asp:ListItem>
my syntax doesn't work anymore at all.
I have the error:
Literal expressions like '<%$ Resources:Scorecards, String103%>' are
not allowed. Use
But if I use the suggested
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 ?