144
rated 0 times
[
151]
[
7]
/ answers: 1 / hits: 18104
/ 10 Years ago, fri, december 19, 2014, 12:00:00
Does anybody know a way to convert a C# string to a JavaScript String in Asp.net. My code looks like this:
<script>
@{string thing = Cats;}
var thing = String(@thing);
</script>
</div>
<body onload=eventAlert(thing)></body>
More From » c#