dotnet thoughts 

a dotnet developer's technical blog

"CS1010: Newline in Constant" Error Message When a String Contains a Tag in the Inline Code

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)