主题:ASP初学者,编译问题求助
ASP编译错误,请帮忙看一下
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/Connections/cnn1.asp, line 9, column 45
MM_cnn1_STRING = Provider=Microsoft.Jet.OLEDB.4.0;data source="g:\web\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 ncount FROM tcount"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 2
Recordset1.Open()
Recordset1_numRows = 0
%>
<% Recordset1.Fields.Item("ncount").Value=Recordset1.Fields.Item("ncount").Value+1
Recordset1.update
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
你是第<%=(Recordset1.Fields.Item("ncount").Value)%> 位访问者
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
cnn1代码如下:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_cnn1_STRING
MM_cnn1_STRING = Provider=Microsoft.Jet.OLEDB.4.0;data source="g:\web\data\counter.mdb"
%>
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/Connections/cnn1.asp, line 9, column 45
MM_cnn1_STRING = Provider=Microsoft.Jet.OLEDB.4.0;data source="g:\web\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 ncount FROM tcount"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 2
Recordset1.Open()
Recordset1_numRows = 0
%>
<% Recordset1.Fields.Item("ncount").Value=Recordset1.Fields.Item("ncount").Value+1
Recordset1.update
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
你是第<%=(Recordset1.Fields.Item("ncount").Value)%> 位访问者
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
cnn1代码如下:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_cnn1_STRING
MM_cnn1_STRING = Provider=Microsoft.Jet.OLEDB.4.0;data source="g:\web\data\counter.mdb"
%>