请各位高行帮我看一下下面的代码,为什么不能正确的分页呢?!
<!--#include file="config/conn.asp"-->
<%
area=request("area")
jobclass=request("jobclass")
sex=request("sex")
'response.write sex
xueli=request("xueli")
workstate=request("workstate")
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Job_ILeag inner join Job_resume on ILeag_id=rsm_ILeagid where 1=1"
if area<>" " then sql=sql&" and rsm_jobarea1='"&area&"' or rsm_jobarea2='"&area&"' "
if jobclass<>" " then sql=sql&" and rsm_job1='"&jobclass&"' or rsm_job2='"&jobclass&"' "
if sex<>" " then sql=sql&" and ILeag_sex='"&sex&"' "
if xueli<>" " then sql=sql&"and ILeag_schrec='"&xueli&"' "
if workstate<>" " then sql=sql&"and rsm_chara='"&workstate&"' "
response.write sql
rs.pagesize=2
rs.cursorlocation=3
rs.open sql,conn,1,1
page=request("page")
if cint(page)="" or cint(page)=0 then
page=1
end if
if cint(page)>rs.pagecount then
page=rs.pagecount
end if
%>
<table width="567" border="1">
<tr>
<td><div align="center">姓名</div></td>
<td><div align="center">学历</div></td>
<td><div align="center">年龄</div></td>
<td><div align="center">工作经验</div></td>
<td><div align="center">期望月薪</div></td>
<td><div align="center">现居住地</div></td>
</tr>
<%
if rs.eof then
response.write "数据库暂无您要查询的信息!"
%>
<%else
rs.absolutepage=page
%>
<% for i=0 to 1 %>
<% if not rs.eof then%>
<tr>
<td> <a href="preview_resume_search.asp?id=<%=rs("ILeag_id")%>" ><% =rs("ILeag_name")%></td>
<td> <%=rs("ILeag_schrec")%></td>
<td> <%=rs("ILeag_age")%></td>
<td> <%=rs("ILeag_workyear")%></td>
<td> <%=rs("rsm_wage")%></td>
<td> <%=rs("ILeag_address")%></td>
</tr>
<% rs.movenext
end if %>
<% next
end if
%>
<%
if rs.pagecount>=1 then
response.write"<tr><td colspan=4 align=right bgcolor=#fffbf7>"&_
"共有"&rs.pagecount&"页 这是第"&page&"页 <a href='search_show.asp?page="&page-1&"'>上一页</a> <a href='search_show.asp?page="&page+1&"'>下一页</a>"&_
"</td></tr>"
end if %>
<%
rs.close
set rs=nothing
%>
</table>