I saw some web page saying I could do it this way in
javascript:
var iNumber = <%#publicvarnam e [or] publicpropertyn ame %>
but it doesn't seem to work. I have this piece of code
here in javascript:
<script language="javas cript">
var sessionServer = "<%#jsTestServe r%>";
alert(sessionSe rver);
</script>
and the variable is defined in the C# code behind:
public string jsTestServer
= "\\\\TestServer \\TestSession\\ ";
when I run it, alert has no message in it.
javascript:
var iNumber = <%#publicvarnam e [or] publicpropertyn ame %>
but it doesn't seem to work. I have this piece of code
here in javascript:
<script language="javas cript">
var sessionServer = "<%#jsTestServe r%>";
alert(sessionSe rver);
</script>
and the variable is defined in the C# code behind:
public string jsTestServer
= "\\\\TestServer \\TestSession\\ ";
when I run it, alert has no message in it.
Comment