Microsoft VBScript 运行时错误 错误 '800a01a8' 缺少对象

雨中探戈 2009-10-15 11:24:14
<!--#include file="inc/index_conn.asp"-->
<!--#include file="inc/func.asp"-->
<%
dim classid
classid = request("classid")
%>
<%
set rs=server.createobject("adodb.recordset")
sqltext="select * from job order by id desc"
rs.open sqltext,conn,1,1

dim MaPerPage
MaPerPage=4

dim text,checkpage
text="0123456789"
Rs.PageSize=MaPerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next

If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if

call list

'显示帖子的子程序
Sub list()%>
<title>西安市兴汉办公家具有限公司</title>
<meta name="keywords" content="兴汉办公家具,兴汉办公家具公司,兴汉办公桌椅,兴汉办公室隔断,兴汉办公桌,兴汉屏风工作位,兴汉办公家具供应,兴汉家具公司,兴汉中高档办公家具">
<meta name="description" content="西安市兴汉办公家具有限公司专业提供办公家具销售设计服务,公司主要产品有实木油漆系列、防火板系列办公家具。">

<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #333333;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #333333;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
}
.style1 {font-size: 9px}
.style2 {font-size: 12px}
.h {
line-height: 24px;
}
.style3 {color: #FF0000}
.STYLE8 {color: #FF0000; font-weight: bold; }
-->
</style>
<body oncontextmenu=window.event.returnValue=false onselectstart=event.returnValue=false ondragstart=window.event.returnValue=false >
<table width="1000" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="250" align="center" valign="top" bgcolor="#F4F4F4"><!--#include file="left.asp"--></td>
<td width="750" align="center" valign="top"><table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><!--#include file="head.asp"--></td>
</tr>
<tr>
<td align="center" valign="top"><table width="741" border="0" align="center" cellpadding="0" cellspacing="0" background="image/bg2.jpg">
<tr>
<td><img src="image/bg1.jpg" width="741" height="26"></td>
</tr>
<tr>
<td height="240" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="image/TITLE.gif" width="10" height="10"> <span class="STYLE8">人才招聘</span></td>
</tr>
<tr>
<td colspan="2" background="image/x1.gif"><img src="image/x1.gif" width="4" height="1"></td>
</tr>
<tr>
<td colspan="2"> </td><%
if not rs.eof then
i=0
do while not rs.eof
%>
</tr>

<tr>
<td width="1%" colspan="2" class="h">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#000000">
<tr>
<td width="24%" bgcolor="#DFD5B9">
<div align="center">招聘对象</div></td>
<td width="76%" bgcolor="#F8FCF8" align="left"> <%=rs("Duix")%></td>
</tr>
<tr>
<td bgcolor="#DFD5B9">
<div align="center">招聘人数</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("Rens")%></td>
</tr>
<tr>
<td bgcolor="#DFD5B9">
<div align="center">工作地点</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("did")%></td>
</tr>
<tr>
<td bgcolor="#DFD5B9">
<div align="center">工资待遇</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("daiy")%></td>
</tr>
<tr>
<td bgcolor="#DFD5B9">
<div align="center">发布时间</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("time")%></td>
</tr>
<tr>
<td bgcolor="#DFD5B9">
<div align="center">有效期限</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("Qix")%></td>
</tr>
<tr>
<td height="22" bgcolor="#DFD5B9">
<div align="center">招聘要求</div></td>
<td bgcolor="#F8FCF8" align="left"> <%=rs("yaoq")%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="22" colspan="2"><div align="right"><a href="AcceptJob.asp?job=<%=rs("Duix")%>">应聘此岗位</a>
</div></td>
</tr>
</table>
</td>
</tr>
<%
i=i+1
if i >= MaPerpage then exit do
rs.movenext
loop
end if
%>
</table></td>
</tr>
<TR>
<TD
height=25 bgcolor="#D8D8D8">   <%
Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>条招聘信息</font></strong>          "
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) & "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong> "
If currentpage > 1 Then
response.write "<strong><a href='Job.asp?&page="+cstr(1)+"'><font color='#000000'>首页</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='Job.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一页</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一页 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='Job.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='Job.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾页</font></a></strong>  "
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一页</font></strong>  "
End if
%> <%
End sub
rs.close
%> </TD>
</TR>
<tr>
<td height="22"><img src="image/bg3.jpg" width="741" height="22"></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>

<tr>
<td colspan="2" align="center" valign="middle"><!--#include file="bottom.asp"--></td>
</tr>
</table>
...全文
255 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
雨中探戈 2009-10-15
  • 打赏
  • 举报
回复
id需要加方括号吗,有这种写法?
shenzhenNBA 2009-10-15
  • 打赏
  • 举报
回复
sqltext="select * from job order by [id] desc"

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧