还是不行,真是郁闷.我试过多种都想不到我哪里错了.我现在把源代码放和错误提示到上面.请大家再帮我看看.万分感激!
源码:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script runat="server">
Sub showwindows(Src As Object, E As EventArgs)
Response.Write("<script> alert('对不起,你的ID有误,请核实后重试!');</script>")
End Sub
</script>
<body>
<asp:Button ID="button" runat="server" Text="弹出对话框" OnClick="showwindows" />
</body>
</html>
编译的错误提示:
D:\主页\showwindows.aspx(10) : error BC30648: 字符串常量必须以双引号结束。
Response.Write("<script> alert('对不起,你的ID有误,请核实后重试!');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~