求救 为什么我的网页不能显示内容呢?
我正在做的一个系统出现如下问题:
打不开index.asp页面,然后出现如下的提示:技术信息(用于支持人员)
技术信息(用于支持人员)
错误类型:
Microsoft JET Database Engine (0x80004005)
操作必须使用一个可更新的查询。
/eling/index.asp, 第 6 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /eling/index.asp
时间:
2005年3月28日, 21:19:
cnn.asp的代码是:
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("wwwb2bsoftnet/mnbvcxzlkjhgfdsa.jpg")
%>
<%
sqllogo="SELECT top 1 * FROM tbconfig"
set rslogo=server.createobject("adodb.recordset")
rslogo.open sqllogo,conn,3,2
logo=rslogo("logo")
logolink=rslogo("logolink")
title=rslogo("title")
islogin=rslogo("islogin")
refreshtime=rslogo("refreshtime")
islook=rslogo("islook")
ischeck=rslogo("ischeck")
function HTMLEncode(fString)
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
fString = Replace(fString, CHR(10), "<BR>")
fString = Replace(fString, " ", " ")
HTMLEncode = fString
end function
function cuter(typess,nummers)
dim types:types=typess
if len(types)>nummers then
cuter=left(types,nummers) & "..."
else
cuter=types
end if
end function
%>
<SCRIPT language=javascript>
<!-- begin
function click() {
if (event.button==2) {
alert('考试期间,请不要使用右键!')
}
}
document.onmousedown=click
end -->
</script>
index.asp的代码是:
<%@ LANGUAGE = VBScript.Encode %>
<!--#include file="conn.asp"-->
<%
set drs=server.createobject("ADODB.recordset")
dsql="update tbtongji set num=num+1 where pagename='index'"
drs.open dsql,conn,3,2
set drs1=server.createobject("ADODB.recordset")
dsql="select * from tbtongji where pagename='index'"
drs1.open dsql,conn,3,2
session("elt_totalpeople")=drs1("num")
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%></title>
<script language="javascript">
function openit(id)
{
page="kaoshiindex.asp"
window.open (page,'在线考试系统','width=800,height=600,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=no,status=no')
window.close();
}
</script>
</head>
<body bgcolor="#0855B5">
<p align="center"><a href="javascript:openit()"><img border="0" src="images/XP.jpg" align="center"></a> </p>
</body>
</html>