谢谢楼上两位,不过情况依旧
我的源代码为
<%@ Language="JScript" %>
<html>
<head>
</head>
<body>
<%
var dt=new Date();
var time=dt.getHours()+":"+dt.getMinutes()+":"+dt.getSeconds();
var date=dt.getFullYear()+"-"+(dt.getMonth()+1)+"-"+dt.getDate();
var cpdt=date+" "+time;
Response.write(cpdt);
var filePath ="C:/Inetpub/wwwroot/";
var path = filePath + "fb.mdb";
var updateCnt = 0;
var sqlStr="select * from feedback";
var ConnDB = new ActiveXObject("ADODB.Connection");
ConnDB.Provider = "Microsoft.Jet.OLEDB.4.0";
ConnDB.ConnectionString = "Data Source=" + path;
var rs = new ActiveXObject("ADODB.Recordset");
ConnDB.open;
rs.open(sqlStr,ConnDB,3,3);
rs.addnew();
rs("id")="1";
rs("title")="test";
rs("contant")="testct";
rs("fbtime")=cpdt;
rs.update();
while (!rs.eof)
{
var cnt = rs.Fields("id");
Response.write(cnt);
updateCnt = cnt * 1 + 1;
rs.moveNext;
}
rs.close();
rs = null;
%>
</body>
</html>