简单问题,但是我很费解!
好像每天都在讨论页面上弹出对话框的问题,一种答案就是:
Reponse.Write("<script>window.alert(\"消息\")</script>");
但是我一这样写,就报错:
Compilation Error
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 86: {
Line 87: err.Visible=true;
Line 88: Reponse.Write("<script>window.alert(\"消息\")</script>");
Line 89: }
Line 90: else
这是怎么回事啊?