How to add localized listitems to a dropdownlist ?

How to add localized listitems to a dropdownlist ?

am 24.04.2008 22:37:20 von Radu

For stuff like
id="validDate"
Text="*"
ErrorMessage= "<%$ Resources:Scorecards, String66 %>"
Display="Dynamic"
OnServerValidate="ServerValidate"
runat="server">

apparently the syntax
....= "<%$ Resources:Scorecards, String66 %>"
works, but in the HTML
ID="cboEPSSessions"

runat="server"
ToolTip="<%$ Resources:Scorecards, String68 %>"
>
<%$ Resources:Scorecards, String103%> asp:ListItem>
<%$ Resources:Scorecards, String104%> asp:ListItem>
<%$ Resources:Scorecards, String105%> asp:ListItem>

my syntax doesn't work anymore at all.

I have the error:
Literal expressions like '<%$ Resources:Scorecards, String103%>' are
not allowed.
Use instead.

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 ?

Thank you.
Alex

Re: How to add localized listitems to a dropdownlist ?

am 24.04.2008 22:48:12 von Radu

As another user said in some thread, the best way to solve a problem
is to post the question here - you don't event need to have it
answered - the moment you hit the "post" button, you realize how
simple the answer was, and how blind you have been.

In other words, it's as simple as:
"> asp:ListItem>

or



instead of

<%$ Resources:Scorecards, String103%>

or