莫名奇妙的问题
http://www.greenpeak.com.cn/products/prod.asp?type_id=Tools%20_%20Accessories&page=2请看这页为什么会出现这个错误?
相关代码如下
<%if page=1 and not page=pagecount then%>
<div align="right"> <%for k=1 to pagecount%>
<a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=k%>"><%=k%></a> <%next%><a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=page+1%>">Next</a> </div>
<%elseif page=pagecount and not page=1 then%>
<div align="right"><a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=page-1%>">Prev</a> <%for k=1 to pagecount%>
<a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=k%>"><%=k%></a> <%next%> </div>
<%elseif page<1 then%><div class="font" align="right"><font color=red>no data</font></div>
<%elseif page>pagecount then%><div class="font" align="right"><font color=red>no data</font></div>
<%elseif page=1 and page=pagecount then%>
<%else%>
<div align="right"><a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=page-1%>">Prev</a> <%for k=1 to pagecount%>
<a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=k%>"><%=k%></a> <%next%>
<a href="prod.asp?type_id=<%=replace(rs("type_id"),"&","_")%>&page=<%=page+1%>">Next</a> </div>
<%end if%>