Response.Write问题
我看教程上都有Response.Write( " <script> alert( '恭喜您,注册成功! '); </script> ")之类语句
但我在VS里试了却不成功
提示Compiler Error Message: BC30648: String constants must end with a double quote.
Source Error:
Line 5: <script runat= "server ">
Line 6: Sub page_load()
Line 7: Response.Write( " <script> alert( '恭喜您,注册成功! '); </script> ")
Line 8: End Sub
Line 9: </script>
难道Response.Write里不能带 <script> 的语句吗?
------解决方案--------------------Response.Write( " <script> alert( ' " + "警告!点击删除按钮后数据将被彻底删除,无法恢复.请仔细核对! "
+ " '); </script> ");
可能是语法上有问题吧。这是我写过的代码,可以正确运行。你看看。