<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td height="72" width="691" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="middle" class="axt" height="30" width="660" align="left"><strong></strong>
<%
response.write "| <a href='Product.asp?BigClassName=" & rs("BigClassName") & "'>" & rs("BigClassName") & "</a> >> "
if rs("SmallClassName") & ""<>"" then
response.write "<a href='Product.asp?BigClassName=" & rs("BigClassName")&"&SmallClassName=" & rs("SmallClassName") & "'>" & rs("SmallClassName") & "</a> >> "
end if
response.write rs("Title")
%>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td height="25" valign="middle" align="center" class="a12_7f">
<%call ShowArticleContent()%>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="28">
<div align="center">点击数:<%=rs("Hits")%> 录入时间:<%= FormatDateTime(rs("UpdateTime"),2) %> 【<a href='javascript:window.print()'>打印此页</a
>】 【<a href='javascript:history.back()'>返回</a>】</div>
</td>
</tr>
<tr>
<td height="4"></td>
</tr>
</table>
</td>
</tr>
</table>
首先谢谢你的回答,这样如果不是连续的ID就会不显示吧
比如,ID号1、2、3、我删掉了2就不会显示了,我希望是删掉了也一样可以跳到3
用sql语句读取当前id附近的的数据;
select top 1 id from 表 where id>当前的id and ....order by id desc
降序排列第一个值就是当前id下一个id
select top 1 id from 表 where id<当前的id and ....order by id asc
升序排列第一个值就是当前id上一个id
能给个完整的代码吗,谢谢~
http://www.honfine.com.cn/ArticleShow.asp?ArticleID=1959
比如这个页面要求如上
具体的代码怎么写。。