帮我看看asp页出错提示
出错信息内容如下:
ADODB.Recordset 错误 '800a0cb3'
当前记录集不支持书签。这可能是提供程序或选定的游标类型的限制。
/zuoye/group.asp,行55
asp文件内容:
<%
%>
<html>
<head>
<title>fillingroup</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#9900CC" vlink="#9900CC" alink="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="back.jpg">
<form name="group" method="post" action="">
<table>
<tr>
<td bgcolor="#FFFFFF"><img src="smalllogo.jpg" width="270" height="90"></td>
</tr>
</table>
<table align="center" cellspacing="0" cellpadding="0">
<tr height="50">
<td></td><td align="center"><font size="+2" color="red"><b>填写组别</b></font></td>
</tr>
<br><br><br>
<tr height="50">
<td>组别:</td> <td><input type="text" name="group" style="WIDTH:150px;HEIGHT:20px"></td>
</tr>
<tr height="50">
<td></td>
<td>
<div align="center">
<input type="submit" name="submit" value="提交" >
<input type="reset" name="submit1" value"重设">
</div>
</td>
</tr>
</table>
<div align="center">
<%
dim rst,ssql,currentpage,rowcount,i,cnn
currentpage=request.querystring("currentpage")
if currentpage="" then
currentpage=1
end if
set cnn=server.createobject("adodb.connection")
set rst=server.CreateObject("ADODB.RECORDSET")
cnn.connectionstring="dsn=zuoye;uid=yangwentao;pwd=34101040"
cnn.open
sql="select * from activedata"
rst.open sql,cnn, 1,3
if rst.eof then
response.write "<p><b>当前没有组别!</b></p>"
response.end
end if
rst.close
rst.cursortype=adopendynamic
rst.pagesize=5
ssql="select 接收方 from activedata order by 时间"
rst.open ssql,cnn
rst.absolutepage=cint(currentpage)
rowcount=0
%>
<table border='0' cellpadding="0" cellspacing="0" width=100%>
<tr>
<th>组别</th>
</tr>
<tr>
<%while not rst.eof and rowcount<rst.pagesize%>
<td><%=rst("接收方")%></td>
</tr>
<%
rowcount=rowcount+1
rst.movenext
wend
%>
</table>
<p>当前组别数<%rst.recordcount%>
每页<%=rst.pagesize%>个组别
当前页次:<%=currentpage%>/<%rst.pagecount%>页
<%
for i=1 to rst.pagecount
if i=cint(currentpage) then
%>
[<font color="red"><%=i%></font>]
<%
else
%>
[<a href="group.asp?currentpage=<%=i%>"><%=i%></a>]
<%
end if
next
%>
</p>
</div>
</form>
</body>
</html>
ADODB.Recordset 错误 '800a0cb3'
当前记录集不支持书签。这可能是提供程序或选定的游标类型的限制。
/zuoye/group.asp,行55
asp文件内容:
<%
%>
<html>
<head>
<title>fillingroup</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#9900CC" vlink="#9900CC" alink="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="back.jpg">
<form name="group" method="post" action="">
<table>
<tr>
<td bgcolor="#FFFFFF"><img src="smalllogo.jpg" width="270" height="90"></td>
</tr>
</table>
<table align="center" cellspacing="0" cellpadding="0">
<tr height="50">
<td></td><td align="center"><font size="+2" color="red"><b>填写组别</b></font></td>
</tr>
<br><br><br>
<tr height="50">
<td>组别:</td> <td><input type="text" name="group" style="WIDTH:150px;HEIGHT:20px"></td>
</tr>
<tr height="50">
<td></td>
<td>
<div align="center">
<input type="submit" name="submit" value="提交" >
<input type="reset" name="submit1" value"重设">
</div>
</td>
</tr>
</table>
<div align="center">
<%
dim rst,ssql,currentpage,rowcount,i,cnn
currentpage=request.querystring("currentpage")
if currentpage="" then
currentpage=1
end if
set cnn=server.createobject("adodb.connection")
set rst=server.CreateObject("ADODB.RECORDSET")
cnn.connectionstring="dsn=zuoye;uid=yangwentao;pwd=34101040"
cnn.open
sql="select * from activedata"
rst.open sql,cnn, 1,3
if rst.eof then
response.write "<p><b>当前没有组别!</b></p>"
response.end
end if
rst.close
rst.cursortype=adopendynamic
rst.pagesize=5
ssql="select 接收方 from activedata order by 时间"
rst.open ssql,cnn
rst.absolutepage=cint(currentpage)
rowcount=0
%>
<table border='0' cellpadding="0" cellspacing="0" width=100%>
<tr>
<th>组别</th>
</tr>
<tr>
<%while not rst.eof and rowcount<rst.pagesize%>
<td><%=rst("接收方")%></td>
</tr>
<%
rowcount=rowcount+1
rst.movenext
wend
%>
</table>
<p>当前组别数<%rst.recordcount%>
每页<%=rst.pagesize%>个组别
当前页次:<%=currentpage%>/<%rst.pagecount%>页
<%
for i=1 to rst.pagecount
if i=cint(currentpage) then
%>
[<font color="red"><%=i%></font>]
<%
else
%>
[<a href="group.asp?currentpage=<%=i%>"><%=i%></a>]
<%
end if
next
%>
</p>
</div>
</form>
</body>
</html>
...全文
相关推荐
asp.net网站出错时如何处理?
asp.net网站出错时如何处理?
IIS中ASP.NET连接SQL Server出错的解决方法
在IIS中运行的ASP.NET应用程序其所属用户名为ASPNET的特定用户,其默认权限是无法访问SQL Server的,更不可能访问ASP.NET应用程序的数据库了,因此要在IIS中访问SQL Server就需要给ASPNET帐户赋予相应的权限.
ASP网站调试工具 IIS出错
如何你的IIS不能正确运行,只须将该软件解压直接复制到你的项目文件夹下,双击运行就OK了!
ASP.Net MVC 布局页、模板页使用方法详细介绍
一、Views文件夹 -> Shared文件夹下的 _Layout.cshtml 母版页 @RenderBody 当创建基于_Layout.cshtml布局页面的视图时,视图的内容会和布局页面合并,而新创建视图的内容会通过_Layout.cshtml布局页面的@RenderBody()方法呈现在标签之间。 @RenderPage 从名称可以猜出来这个方法是要呈现一个页面。比如网页中固定的头部可以单独放在一个共享的视图文件中,然后在布局页面中通过这个方法调用,用法如下: @RenderPage(“~/Views/Shared/_Header.cshtml”) 带参数 @RenderPage(“
最好的脚本编辑器javascript asp html,自动提示语法
最好的脚本编辑器javascript asp html,自动提示语法.自动纠错。好东西一般人我不告诉他


