"CS1010: Newline in Constant" Error Message When a String Contains a Tag in the Inline Code
By Anuraj P on November 17th, 2007 . 2 Comments .
While working in ASP.Net and Java-script, we often use strings or string builder objects to register client script into the page. And when it comes to writing </script> tag, ASP.Net throws “CS1010: Newline in Constant” Error. The workaround for this problem is split the </SCRIPT> tag in to two strings, such as “<” + “/script>”.
The same can be found from MSDN support center (url : http://support.microsoft.com/kb/827420)