Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Javascript code analyzer fails to process ASP.NET special tags.

$
0
0

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?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>