编译器错误信息: CS1010: 常数中有换行符 Response.Write("<script>alert(\'add ok\');location.href="/\'Edit.asp"\';</script>");麻烦哟。分开输出就噢科了Response.Write("<script>alert(\'add ok\');location.href="/\'Edit.asp"\';<"+"/script>");