The following are errors:
Protected void erro (string Str)
{
Response. Write ("<script language = JavaScript> ");
Response. Write ("alert (\" "+ STR + "\")");
Response. Write ("</SCRIPT> ");
Response. Write ("<script language = \" javascript \ "> location = \"
Javascript:History. Back (1) \ "</SCRIPT> ");
Response. End
}
Compilation Error
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify them as appropriate.Source code.
Compiler error message: cs1010: linefeed in constant
Source error:
Solution:
Response. Write ("<" + "/SCRIPT> ")
Response. Write ("<SCRIPT> alert (\ 'add OK \ '); location. href ="/\ 'edit. asp "\'; </SCRIPT> ");
Trouble.
Output separately.
Response. write ("<SCRIPT> alert (\ 'add OK \ '); location. href = "/\ 'edit. ASP "\ '; <" + "/SCRIPT> ");