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)
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
Source Error:
Line 12:
Line 13:
Line 14: ‘****************************************************************************
Line 15: ‘ WO :- IRM_RemoveSSn
Line 16: ‘Created By :- Harshwordhan gupta
Source File: c:\Inetpub\wwwroot\SearchCandidate.aspx Line: 14
I dont know what is problem.
On other computer same page is running very well but on my computer not?
@santosh Maurya : Can try deleting the ASP.Net temp files and then try again. If the same page works in another machine it will be the problem. You can check this link on how to clean up asp.net temp files : http://blogs.msdn.com/b/dougste/archive/2008/08/11/clearing-out-temporary-asp-net-files.aspx