必威betway-手机版唯一官网
做最好的网站

必威betway

当前位置:必威betway > 必威betway > 我刚接触ASP不久。我写了个这样的代码,为什么会出现80020009错误?

我刚接触ASP不久。我写了个这样的代码,为什么会出现80020009错误?

来源:http://www.jdxzx.net 作者:必威betway 时间:2020-01-05 04:25

<%@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>

本文由必威betway发布于必威betway,转载请注明出处:我刚接触ASP不久。我写了个这样的代码,为什么会出现80020009错误?

关键词: