I have the following code in my .aspx file:
<script type="text/javascript"> ... var js_variable = <%= _PublicFieldFromCodeBehindClass %>; ... </script>
This code compiles and executes just fine. But I always have a "Syntax error" in my error list after building the project. And the semicolon at the end of the string is underlined red:
Apparently, it's a JS analyzer bug. How to workaround it?