CS1010: Newline in Constant
Yesterday I bumped into a strange flaw in the IIS compilation logic:
The error appeared on a ASP.NET page where I needed to include a string with some script-tags. Apparently the compiler mistook the script-tags in the string for the script tags in the ASP.NET page where I was writing the code.
Thanks to the this blog, I figured out that misleading the compiler would do the trick:
string strAll = "<SCRIPT lanquage='JScript'>window.alert('" + strValue + "');<"+"/SCRIPT>";
Labels:
ASP.NET