Hi,
I want to show a text depending on what language is selected ... and that by a client-side script.
What's wrong in my next javascript example :
...
<script language=javascript>
function btclick()
{
document.getElementById("<%=mytxt.ClientID %>").value="<% $ Resources:myResource, myText %>";
}
</script>
...
I'm getting the following error :
**************************
Parser Error Message: Literal expressions like '<% $ Resources:myResource, myText %>' are not allowed.
Use <asp:Literal runat="server" Text="% $ Resources:myResource, myText %>" /> instead.
Source Error:
Line 15: document.getElementById("<%=mytxt.ClientID %>").value='<% $ Resources:myResource, myText %>';
***************************
I cannot use "Literal" in this situation ... ! right ?
10x
D.
I want to show a text depending on what language is selected ... and that by a client-side script.
What's wrong in my next javascript example :
...
<script language=javascript>
function btclick()
{
document.getElementById("<%=mytxt.ClientID %>").value="<% $ Resources:myResource, myText %>";
}
</script>
...
I'm getting the following error :
**************************
Parser Error Message: Literal expressions like '<% $ Resources:myResource, myText %>' are not allowed.
Use <asp:Literal runat="server" Text="% $ Resources:myResource, myText %>" /> instead.
Source Error:
Line 15: document.getElementById("<%=mytxt.ClientID %>").value='<% $ Resources:myResource, myText %>';
***************************
I cannot use "Literal" in this situation ... ! right ?
10x
D.