Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Page number in ASP

Status
Not open for further replies.

aspmonster

IS-IT--Management
Dec 11, 2003
25
US
I want to add a page number to my list of records. For example of the number of records go above 50 - click (2) to view the next 50 records. Thereby displaying 50 records at a time.
Please help
This is my code
=======================
<table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; bordercolor=&quot;silver&quot; width=&quot;100%&quot;>
<tr class=&quot;bodytext&quot; bgcolor=&quot;gainsboro&quot;>
<td colspan=&quot;4&quot; align=&quot;center&quot;><B>List of all Employees having Access</B></TD>
</tr>
<tr class=&quot;nav_subpage_usrcom_sub_block&quot;>
<td width=&quot;25%&quot;><B>Name</B></TD>
<td width=&quot;25%&quot;><B>Email Address</B></TD>
<td width=&quot;25%&quot;><B>ICRS ID</B></TD>
<td width=&quot;25%&quot;><B>Department</B></TD>
</tr>

<%
Do Until RsEmps.EOF
%>

<tr class=&quot;bodytext&quot; bgcolor=&quot;#ffffff&quot;>
<td width=&quot;25%&quot;><B><% Response.Write RSEmps(&quot;Name&quot;) %></B></TD>
<td width=&quot;25%&quot;><B><A HREF=&quot;mailto:<% Response.Write RSEmps(&quot;EmailAddress&quot;) %>&quot;><% Response.Write RSEmps(&quot;EmailAddress&quot;) %></A></B></TD>
<td width=&quot;25%&quot;><B><% Response.Write RSEmps(&quot;PhoneNumber&quot;) %></B></TD>
<td width=&quot;25%&quot;><B><A HREF=&quot;results.asp?view=Department&Department=<% Response.Write RSEmps(&quot;Department&quot;) %>&quot;><% Response.Write RSEmps(&quot;Department&quot;) %></A></B></TD>
</tr>
<%
RSEmps.MoveNext
loop
%>

=======================
 
There are several FAQs on pagination in the FAQs area. Have a look.

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Can you get me to a specific link in the FAQ. I couldnt find it
 
faq333-3229

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top