Article ID: 827420 - View products that this article applies to.
When you try to browse an .aspx page with inline code that contains the </SCRIPT> HTML tag, you may receive the following error message:
Server Error in '/<applicationname>' Application.
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1010: Newline in constant
To work around this problem, split the </SCRIPT> tag in two or more strings such as "<" + "/SCRIPT>", and then use inside script blocks as follows:
Steps to Reproduce the Problem
For more information about writing a script that writes a script in Microsoft Internet Explorer or in ASP.NET, visit the following Microsoft Developer Network (MSDN) Web site:
For more information about the design pattern for passing values between Web Form pages by using code inline, visit the following MSDN Web site:
Contact us for more help
Connect with Answer Desk for expert help.