求大神指导。求求大神指导指导啊。T.T我刚接触这个不久,我写了个这样的图片加载页面,为什么点击了下一站或上一张有时候能运行有时候会出现80020009错误,有什
我刚接触这个不久,我写了个这样的图片加载页面,为什么点击了下一站或上一张有时候能运行有时候会出现80020009错误,有什么好的解决办法吗?代码如下;
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<%
Dim Rs, Sql
Set Rs=Server.CreateObject("ADODB.RECORDSET")
Sql = "Select * From cp where id="&request("id")
Rs.Open Sql,Conn,1,1
Const Pagetitle = "显示图片页面"
%>
<%
Dim Rs4, Sql4
Set Rs4=Server.CreateObject("ADODB.RECORDSET")
Sql4 = "Select * From cp order by id desc"
Rs4.Open Sql4,Conn,1,1
%>
<!--#include file="../inc/inc_top2.asp" -->
<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<script type="text/css">
.a {
height:50 px;
width:50 px;
}
</script>
</head>
<body>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
<tr>
<td height="100" align="center" valign="top">
<table width="996" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="center" background="../images/dhtbt_b.jpg" class="z12">来源:<%= rs("name") %> 发布时间:<%= rs("sj") %>
</td>
</tr>
<tr>
<td height="50" align="center" bgcolor="#BFDFFF" class="z20"><%= rs("cbmc") %>
<hr color="#00CCFF" size="4"></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">
<img src="pic/<%= rs("pic2") %>" width="500" height="375"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="nr1"> <%= rs("cbsm") %></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center">
<div class="a">
<a href="tpjt.asp?id=<%=rs("id")-1%>&countjs=countjs<%= rs("id")-1 %>" target="_self">上一张</a>
<a href="tpjt.asp?id=<%=rs("id")+1%>&countjs=countjs<%= rs("id")+1 %>" target="_self">下一张</a>
</div>
<input type="button" onClick="javascript:self.close()" value="关闭窗口" />
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<!--#include file="../inc/inc_footer2.asp" -->
</body>
</html>
[ 本帖最后由 xin549485630 于 2015-1-7 21:53 编辑 ]