R
Radu
I have a global resource, Scorecards.resx.
For stuff like
<asp:CustomValidator
id="validDate"
Text="*"
ErrorMessage= "<%$ Resources:Scorecards, String66 %>"
Display="Dynamic"
OnServerValidate="ServerValidate"
runat="server">
</asp:CustomValidator>
apparently the syntax
....= "<%$ Resources:Scorecards, String66 %>"
works, but in the HTML
<aspropDownList ID="cboEPSSessions"
runat="server" ToolTip="<%$ Resources:Scorecards, String68 %>"
> <asp:ListItem><%$ Resources:Scorecards, String103%></
asp:ListItem> <asp:ListItem><%$ Resources:Scorecards, String104%></
asp:ListItem> <asp:ListItem><%$ Resources:Scorecards, String105%></
asp:ListItem>
</aspropDownList>
my syntax doesn't work anymore at all.
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 ?
For stuff like
<asp:CustomValidator
id="validDate"
Text="*"
ErrorMessage= "<%$ Resources:Scorecards, String66 %>"
Display="Dynamic"
OnServerValidate="ServerValidate"
runat="server">
</asp:CustomValidator>
apparently the syntax
....= "<%$ Resources:Scorecards, String66 %>"
works, but in the HTML
<aspropDownList ID="cboEPSSessions"
runat="server" ToolTip="<%$ Resources:Scorecards, String68 %>"
> <asp:ListItem><%$ Resources:Scorecards, String103%></
asp:ListItem> <asp:ListItem><%$ Resources:Scorecards, String104%></
asp:ListItem> <asp:ListItem><%$ Resources:Scorecards, String105%></
asp:ListItem>
</aspropDownList>
my syntax doesn't work anymore at all.
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 ?