求救 为什么我的网页不能显示内容呢?

hulun2005 2005-03-28 09:24:17
我正在做的一个系统出现如下问题:
打不开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>
...全文
169 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
xinyuan_z 2005-04-04
  • 打赏
  • 举报
回复
权限问题,哦
xinyuan_z 2005-04-04
  • 打赏
  • 举报
回复
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("wwwb2bsoftnet/mnbvcxzlkjhgfdsa.jpg")


第六行是哪一行,拿出来看看,
不过,("wwwb2bsoftnet/mnbvcxzlkjhgfdsa.jpg"),这个有点儿问题,是jpg的,??
hulun2005 2005-04-04
  • 打赏
  • 举报
回复
问题解决了。
是xp下ntf的权限的问题
qoo1983 2005-04-04
  • 打赏
  • 举报
回复
好厉害啊~顺便问下,厉害是怎样练成的?
hulun2005 2005-04-04
  • 打赏
  • 举报
回复
o 哦
谢谢你了
gaochao79 2005-03-28
  • 打赏
  • 举报
回复
rslogo.open sqllogo,conn,3,2 有问题

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧