当前位置:编程学习 > C#/ASP.NET >>

asp.net+access实现上一篇文章、下一篇文章的问题

我用的是asp.net+access我想实现文章的页面有上一篇文章、下一篇文章这2个链接,请问大家怎么样实现? --------------------编程问答-------------------- 一个查询返回3过结果集(dataSet 包含3个datatable).
当前文章
上一篇文章 编号和标贴

下一篇文章 编号和标贴

显示在页面就可以了

--------------------编程问答-------------------- 能有个具体的过程吗?? --------------------编程问答-------------------- select top 1 * from article Where id>当前文章的id Order By id ASC

select top 1 * from article Where id<当前文章的id Order By id DESC

就可以取得了;  --------------------编程问答--------------------
引用 3 楼 net_lover 的回复:
select top 1 * from article Where id>当前文章的id Order By id ASC

select top 1 * from article Where id<当前文章的id Order By id DESC

就可以取得了;


孟前辈已经说的很清楚鸟啊..童鞋``` --------------------编程问答--------------------
引用 3 楼 net_lover 的回复:
select top 1 * from article Where id>当前文章的id Order By id ASC

select top 1 * from article Where id<当前文章的id Order By id DESC

就可以取得了;


+1 --------------------编程问答-------------------- 说了等于没说 --------------------编程问答--------------------
引用 6 楼 fangming315 的回复:
说了等于没说

SQL都给你完整写出来了还说了等于没说,算了你这种人别搞IT了 --------------------编程问答--------------------
引用 7 楼 zh6335901 的回复:
引用 6 楼 fangming315 的回复:

说了等于没说

SQL都给你完整写出来了还说了等于没说,算了你这种人别搞IT了

。。你不是LZ,说错话了,不好意思
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,