Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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