设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 48|回复: 1
打印 上一主题 下一主题

[求助] 关于错误类型(0x80020009) 发生意外

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-15 07:02:12 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
我是个新手 自己做了个论坛! 结果不能正常显示 希望达人能指点一二!
  
  错误类型:
  (0x80020009)
  发生意外。
  /showtitle.asp, 第 35 行 (错误行我用*** 标注出来了)
  
   源代码如下!
  ----------------------朴素的分割线------------------------
  <%
  consize = 10
  if request("BoardName") <> "" then
   session("BoardName") = request("BoardName")
  end if
  set rsarticle = server.createobject("adodb.recordset")
  set rsboard = server.createobject("adodb.recordset")
  set rsreplycount = server.createobject("adodb.recordset")
  set rsreplylast = server.createobject("adodb.recordset")
  set rsuser = server.createobject("adodb.recordset")
  rsarticle.pagesize = consize
  rsarticle.open "select * from spark_article where BoardName='" & _
   session("BoadName")&"' order by PostTime desc",cn,3,1
  rsboard.open "select * from spark_board where BoardName='" & _
   session("BoardName")&"'",cn
  if len(request("page")) = 0 then
   ipage = 1
  else
   ipage = request("page")
  end if
  
  if not rsarticle.eof then
   rsarticle.absolutepage = ipage
  end if
  %>
  <table width="760" height="41" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
   <td width="33%" height="41"><a href="postnew.asp">·&cent;±í&ETH;&Acirc;&Igrave;&ucirc;×&Oacute;</a></td>
   <td width="33%" align="right"><% =session("BoardName") %>°&aelig;&Ouml;÷&Aacute;&ETH;±í&pound;&ordm;</td>
   <td width="34%" height="41">
   <%
   if isnull(rsboard("Manager1")) then
   response.write "暂无版主"
   else
  **错误行 response.write "<a href=userinfo.asp?UserID=" & _
   rsboard("Manager1")& ">" &rsboard("Manager1")&"</a>"
   if not isnull(rsboard("Manager2")) then
   response.write " |<a href=userinfo.asp?UserID" & _
   rsboard("Manager2")& ">" &rsboard("Manager2")&"</a>"
   end if
   if not isnull(rsboard("Manager3")) then
   response.write " |<a href=userinfo.asp?UserID" & _
   rsboard("Manager3")& ">" &rsboard("Manager3")&"</a>"
   end if
   end if
   %>
   </td>
   </tr>
  </table>
  <table width="760" border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#111111" height="46">
   <tr>
   <td width="177" height="19" align="center" bgcolor="#003366"><p align="left"><font color="#FFFFFF" size="2">&Ouml;÷&Igrave;&acirc;</font></td>
   <td width="114" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×÷&Otilde;&szlig;</font></td>
   <td width="153" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">·&cent;±í&Ecirc;±&frac14;&auml;</font></td>
   <td width="31" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">&Ocirc;&Auml;&para;&Aacute;</font></td>
   <td width="30" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">&raquo;&Oslash;&cedil;&acute;</font></td>
   <td width="144" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×&icirc;&ordm;ó&raquo;&Oslash;&cedil;&acute;&Ecirc;±&frac14;&auml;</font></td>
   <td width="66" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×&icirc;&ordm;ó&raquo;&Oslash;&cedil;&acute;&Egrave;&Euml;</font></td>
   </tr>
   <%
   for i = 1 to rsarticle.pagesize
   if not rsarticle.eof then
   rsuser.open "select UserID,UserNick from spark_usres where UserID='" & _
   rsarticle("UserID")&"'",cn
   rsreplycount.open "select Count(ReplyID) from spark_reply where " & _
   "ArticleID="&rsarticle("ArticleID"),cn
   rsreplylast.open "select * from spark_reply where ArticleID=" & _
   rsarticle("ArticleID")&" order by PostTime desc",cn
   %>
   <tr>
   <td width="177" height="26"><a href="contentlist.asp?AricleID=<% =rsarticle("ArticleID") %>"><% =rsarticle("Title") %></a></td>
   <td width="114" height="26" bgcolor="#e6ecf9"><a href="userinfo.asp?UserID=<% =rsuser(0) %>"><% =rsuser(0) %>(<% =rsuser(1) %>)</a></td>
   <td width="153" height="26"><% =rsarticle("PostTime") %></td>
   <td width="31" height="26" bgcolor="#e6ecf9"><% =rsarticle("ReadCount") %></td>
   <td width="30" height="26"><% =rsreplycount(0) %></td>
   <td width="144" height="26" bgcolor="#e6ecf9">
   <%
   if not rsreplylast.eof then
   response.write rsreplylast("PostTime")
   end if
   %> </td>
   <td width="66" height="26">
   <%
   if not rsreplylast.eof then
   response.write "<a href=userinfo.asp?UserID=" & _
   rsreplylast("UserID")&">"&rsreplylast("UserID")&"</a>"
   end if
   %> </td>
   </tr>
   <%
   rsuser.close
   rsreplycount.close
   rsreplylast.close
   rsarticle.movenext
   end if
   next
   %>
   <tr>
   <td width="177" height="19" align="center" bgcolor="#003366"><p align="left"><font color="#FFFFFF" size="2">&Ouml;÷&Igrave;&acirc;</font></td>
   <td width="114" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×÷&Otilde;&szlig;</font></td>
   <td width="153" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">·&cent;±í&Ecirc;±&frac14;&auml;</font></td>
   <td width="31" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">&Ocirc;&Auml;&para;&Aacute;</font></td>
   <td width="30" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">&raquo;&Oslash;&cedil;&acute;</font></td>
   <td width="144" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×&icirc;&ordm;ó&raquo;&Oslash;&cedil;&acute;&Ecirc;±&frac14;&auml;</font></td>
   <td width="66" height="19" align="center" bgcolor="#003366"><font color="#FFFFFF" size="2">×&icirc;&ordm;ó&raquo;&Oslash;&cedil;&acute;&Egrave;&Euml;</font></td>
   </tr>
  </table>
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
   <td width="100" height="30">&micro;±&Ccedil;°&Ograve;&sup3;&Icirc;&ordf;&micro;&Uacute;<% =ipage %>&Ograve;&sup3;</td>
   <td width="258" height="30"> </td>
   <td width="402" height="30" align="right">
   <%
   if rsarticle.pagecount > 0 then
   %>
   <%
   if cint(ipage) = 1 then
   %>
   &micro;&Uacute;&Ograve;&raquo;&Ograve;&sup3; | &Eacute;&Iuml;&Ograve;&raquo;&Ograve;&sup3; |
   <% else %>
   <a href="titlelist.asp?page=1">&micro;&Uacute;&Ograve;&raquo;&Ograve;&sup3;</a>|
   <a href="titlelist.asp?page=<% =ipage - 1 %>"> &Eacute;&Iuml;&Ograve;&raquo;&Ograve;&sup3; </a>|
   <% end if %>
   <%
   if cint(ipage) = cint(rsarticle.pagecount) then
   %>
   &Iuml;&Acirc;&Ograve;&raquo;&Ograve;&sup3; | ×&icirc;&ordm;ó&Ograve;&raquo;&Ograve;&sup3;
   <% else %>
   <a href="titlelist.asp?page=<% =ipage + 1 %>">&Iuml;&Acirc;&Ograve;&raquo;&Ograve;&sup3;</a> |
   <a href="titlelist.asp?page=<% rsarticle.pagecount%>">×&icirc;&ordm;ó&Ograve;&raquo;&Ograve;&sup3;</a>
   <% end if %>
   <% else %>
   &micro;&Uacute;&Ograve;&raquo;&Ograve;&sup3; | &Eacute;&Iuml;&Ograve;&raquo;&Ograve;&sup3; | &Iuml;&Acirc;&Ograve;&raquo;&Ograve;&s
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-20 17:34 , Processed in 0.070691 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表