主题:一个奇怪的问题
一个关于java script的应用。代码如下:
</head>
<script runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
response.Write("<script>alert('登录成功');</script>")
End Sub
</script>
<body>
可是IE中老是报错,如下:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\13c25365\b28888e5\9ozug5ux.0.vb(52) : error BC30289: Statement cannot appear within a method body. End of method assumed.
Public Sub New()
~~~~~~~~~~
F:\网站\gouwuche\qqq.aspx(12) : error BC30648: String constants must end with a double quote.
response.Write("<script>alert('该用户名已经被占用!');
如果说必须导入<% @ Import Namespace="System.IO" %>的话,也试过了,不行呀,大家帮帮我吧,着急啊!
</head>
<script runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
response.Write("<script>alert('登录成功');</script>")
End Sub
</script>
<body>
可是IE中老是报错,如下:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\13c25365\b28888e5\9ozug5ux.0.vb(52) : error BC30289: Statement cannot appear within a method body. End of method assumed.
Public Sub New()
~~~~~~~~~~
F:\网站\gouwuche\qqq.aspx(12) : error BC30648: String constants must end with a double quote.
response.Write("<script>alert('该用户名已经被占用!');
如果说必须导入<% @ Import Namespace="System.IO" %>的话,也试过了,不行呀,大家帮帮我吧,着急啊!