分页的RSS提要的网页形式 [英] Paging in rss feed on a web-form
问题描述
我在我的web应用程序一个RSS源。它显示最近5日消息从数据库中,使用此查询:
I have a RSS-feed in my web-app. It is shown 5 recent news from the DB, using this query:
SELECT TOP 5 newsID, Title, Date, Description FROM News ORDER BY Date DESC
我怎样才能提供用户列表,下面的所有这个消息,在用户将ablle选择其它5日消息,由pressing第2页,另一个由pressing 3页,e.t.c.?
这里不是最好的解释。我的意思是,就像在GridView控件,设置分页能力。
How can I provide user a list, below all this news, where user would be ablle to choose another 5 news, by pressing page 2, another by pressing page 3 and e.t.c.? Not the best explanation here. I mean, like in GridView, to set the Paging ability.
推荐答案
如果你正在寻找如何从一个SQLServer查询得到的行的特定范围,请参照<一个href=\"http://stackoverflow.com/questions/1023841/retrieve-specific-range-of-rows-in-a-sql-server-table\">this帖子。否则,你将需要出示您的code,说明你的问题,并告诉你试过的东西。
If you're looking how to get a specific range of rows from a sqlserver query, please refer to this post. else, you will need to show your code, explain your problem and tell what you've tried.
这篇关于分页的RSS提要的网页形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!