只能显示第一页 点下页和末页没反映
<%
if CurrentPage<2 then
response.write "<font color='999966'>首页 上一页</font> "
else
response.write "<a href=SearchResult.asp?page=&neirong=1"&neirong&"&fangshi="&fangshi&">首页</a> "
response.write "<a href=SearchResult.asp?page="&CurrentPage-1&"&neirong="&neirong&"&fangshi="&fangshi&">上一页</a> "
end if
if totalpages-currentpage<1 then
response.write "<font color='999966'>下一页 尾页</font>"
else
response.write "<a href=SearchResult.asp?page="&CurrentPage+1&"&neirong="&neirong&"&fangshi="&fangshi&""
response.write ">下一页</a> <a href=SearchResult.asp?page="&totalpages&"&neirong="&neirong&"&fangshi="&fangshi&">尾页</a>"
end if
%>
if CurrentPage<2 then
response.write "<font color='999966'>首页 上一页</font> "
else
response.write "<a href=SearchResult.asp?page=&neirong=1"&neirong&"&fangshi="&fangshi&">首页</a> "
response.write "<a href=SearchResult.asp?page="&CurrentPage-1&"&neirong="&neirong&"&fangshi="&fangshi&">上一页</a> "
end if
if totalpages-currentpage<1 then
response.write "<font color='999966'>下一页 尾页</font>"
else
response.write "<a href=SearchResult.asp?page="&CurrentPage+1&"&neirong="&neirong&"&fangshi="&fangshi&""
response.write ">下一页</a> <a href=SearchResult.asp?page="&totalpages&"&neirong="&neirong&"&fangshi="&fangshi&">尾页</a>"
end if
%>
hangxj
为重复发贴,下次注意