Solved

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

Posted on 2007-11-18
3
2,117 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UT-F and other ASP code. What is it for ? 3 31
two-way Authentication ASP 3 80
Determining if Request.Form is empty 1 45
Hide row when retrieving data from database 6 53
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now