Solved

Pagination ASP Recordset Show 10 on Page with Page Numbers e.g. 1,2,3

Posted on 2007-11-18
3
2,126 Views
Last Modified: 2009-07-29
Hi all,
Tried all the examples here on E-E.com to get this simple recordset to show just 10 records on the page with Pagination e.g. 1,2,3 without any success.
The recordset (with my pagination code removed is below)
<%
set rs=openrs("SELECT * FROM News WHERE Active=1 AND EndDate < getdate() ORDER BY TheDate DESC")
if not rs.eof then
rs.movefirst
while not rs.eof
NewsID=rs("NewsID")
TheDate=rs("TheDate")
Summary=rs("Summary")
Title=rs("Title")
%>
<br><%=TheDate%><br><a href="default.asp?NewsID=<%=NewsID%>"><b><%=Title%></b></a>
<%
  rs.movenext
  wend
  end if
  rs.close
  set rs=nothing
%>

Open in new window

0
Comment
Question by:fgict
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 500 total points
ID: 20309788
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21135878
Forced accept.

Computer101
EE Admin
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question