求助ASP编辑问题,
本人初学ASP,网页预览出现如下问题,请大家帮忙看一下,谢谢!!!错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/Connections/cnn1.asp, line 9, column 45
MM_cnn1_STRING = Provider=Microsoft.Jet.OLEDB.4.0;data source="e:\myasp\data\counter.mdb"
原代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/cnn1.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_cnn1_STRING
Recordset1.Source = "SELECT atount FROM tcounter"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 2
Recordset1.Open()
Recordset1_numRows = 0
%>
%>
<% Recordset1.Fields.Item("atount").Value=Recordset1.Fields.Item("atount").Value+1
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
你是第<%=(Recordset1.Fields.Item("atount").Value)%> 位访问者
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>