asp留言板程序ADODB.Recordset 错误 '800a0cb3'
<%
Sub DispPage(RSobj,Page)
rsobj.AbsolutePage = page
For Page=1 to RSobj.PageSize
Name=RSobj("Name")
Email=RSobj("Email")
Sex=RSobj("Sex")
Subject=RSobj("Subject")
Content=RSobj("Content")
MessTime=RSobj("Datetime")
If Email=""Then
Email="暂不提供"
Else
Email="<a href='mailto:"& Email &"'><font>"& Email &"</font></a>"
End if
%>
<div align="center">
<table>
<table width="584">
<tr><td>姓名:<% =name %>[<% =sex %>]</td></tr>
<tr><td>Email:<% =email %></td></tr>
</table>
<table width="584">
<tr><td width="584">主题:<% =subject %></td></tr>
<tr><td width="584">留言时间:<% =messtime %></td></tr>
<tr><td width="584">
<textarea rows='3' cols='80' name='br'><% =content %></textarea>
</td></tr>
</table>
</table>
<%
Rsobj.MoveNext
if RSobj.EOF then exit for
next
end sub
%>
<%
set ConnObj=Server.CreateObject("ADODB.Connection")
connstr="DBQ="+server.mappath("message.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
ConnObj.Open connstr
Set RSobj=Server.CreateObject("ADODB.Recordset")
SQL="Select * From message order By Datetime DESC"
Rsobj.Open SQL,ConnObj,adOpenStatic
RecNum=RSobj.recordCount
PSize=2
RSobj.PageSize=pSize
Response.write"<Center>数据库共记录"&RecNum&"条,"&"分"&RSobj.PageCount&"页显示</center><br>"
Page=request("Page")
If Request("Page")=""Then
Page=1
else
Page=CLng(Request("Page"))
If Page<1 Then Page=1
If Page>RSobj.PageCount Then Page =RSobj.PageCount
End if
DispPage RSobj,Page
%>
<%
If Page <> 1 Then
Response.Write"<a href=ly.asp?Page=1&>第一页</a> "
Response.Write"<a href=ly.asp?Page="&(Page-1)&">上一页</a> "
end If
If Page <> RSobj.PageCount Then
Response.Write"<a href=ly.asp?Page="&(Page+1)&">下一页</a> "
Response.Write"<a href=ly.asp?Page="& RSobj.PageCount &">最后一页</a>"
end If
%>
跳转页数:<input type="text" size="3" name="Page" value=<% =Page %>>
页数: <% =Page %>/<% =RSobj.PageCount %>
<input type=submit value="GO!">
</table>
<div>
</form>
相关推荐
SQLServer ADODB.Recordset 错误“800a0e78”,对象关闭时,不允许操作
今天在帮一个客户维护网站的时候,运行asp提示ADODB.Recordset 错误“800a0e78”,对象关闭时,不允许操作,原来是asp与sqlserver的连接出问题导致
ASP错误总结,解决ASP错误。
ADODB.Stream (0x800A0BBC)---上传文件时发生错误--找不到上传的目录 (0x80020009)---当前rs指针所指向记录的字段值为NULL,不能使用 ADODB.Field (0x80020009)---当前rs指针所指向记录的字段值为NULL,不能输出 ADODB.Field (0x800A0BCD)---没有找到相关记录,不能用rs("字段")取值 ADODB.Recordset (0x800A0BB9)---没有打开数据库(没有打开conn)(rs已经打开一个表,不能再用rs打开别的表) ADODB.Recordset (0x800A0BCD)---记录指针已经指向表尾,不能再执行rs.movenext指令 ADODB.Recordset (0x800A0C93)---更改或添加完记录没有更新(rs.更新)就关闭链接(rs.close) ADODB.Recordset (0x800A0CB3)---数据库操作错误(表在读的方式打开不能添加数据) ADODB.Recordset (0x800A0CC1)---数据库操作错误(在打开的表中找不到指定的字段) ADODB.Recordset (0x800A0E78)---数据库操作错误(rs没有打开表不能用rs.close结束)(rs已经关闭,不能再用rs读取数据) ADODB.Recordset (0x800A0E79)---数据库操作错误(rs已经打开一个表,不能再打开别的表) ADODB.Recordset (0x800A0E7D)---打开表错误(缺少参数)(有可能是忘了写",conn,1,1")
asp程序错误详细说明列表
asp程序错误详细说明列表,asp程序错误详细说明列表
教你如何制作网站留言板,ASP留言本制作
教你如何制作网站留言板,希望对你有帮助!
asp程序错误详细说明例表
asp程序错误详细说明例表 学习或在使用ASP过程中遇到问题的,可以参考此文档,应该会有所帮助。


