aspmonster
IS-IT--Management
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="1" cellpadding="4" cellspacing="0" bordercolor="silver" width="100%">
<tr class="bodytext" bgcolor="gainsboro">
<td colspan="4" align="center"><B>List of all Employees having Access</B></TD>
</tr>
<tr class="nav_subpage_usrcom_sub_block">
<td width="25%"><B>Name</B></TD>
<td width="25%"><B>Email Address</B></TD>
<td width="25%"><B>ICRS ID</B></TD>
<td width="25%"><B>Department</B></TD>
</tr>
<%
Do Until RsEmps.EOF
%>
<tr class="bodytext" bgcolor="#ffffff">
<td width="25%"><B><% Response.Write RSEmps("Name" %></B></TD>
<td width="25%"><B><A HREF="mailto:<% Response.Write RSEmps("EmailAddress" %>"><% Response.Write RSEmps("EmailAddress" %></A></B></TD>
<td width="25%"><B><% Response.Write RSEmps("PhoneNumber" %></B></TD>
<td width="25%"><B><A HREF="results.asp?view=Department&Department=<% Response.Write RSEmps("Department" %>"><% Response.Write RSEmps("Department" %></A></B></TD>
</tr>
<%
RSEmps.MoveNext
loop
%>
=======================
Please help
This is my code
=======================
<table border="1" cellpadding="4" cellspacing="0" bordercolor="silver" width="100%">
<tr class="bodytext" bgcolor="gainsboro">
<td colspan="4" align="center"><B>List of all Employees having Access</B></TD>
</tr>
<tr class="nav_subpage_usrcom_sub_block">
<td width="25%"><B>Name</B></TD>
<td width="25%"><B>Email Address</B></TD>
<td width="25%"><B>ICRS ID</B></TD>
<td width="25%"><B>Department</B></TD>
</tr>
<%
Do Until RsEmps.EOF
%>
<tr class="bodytext" bgcolor="#ffffff">
<td width="25%"><B><% Response.Write RSEmps("Name" %></B></TD>
<td width="25%"><B><A HREF="mailto:<% Response.Write RSEmps("EmailAddress" %>"><% Response.Write RSEmps("EmailAddress" %></A></B></TD>
<td width="25%"><B><% Response.Write RSEmps("PhoneNumber" %></B></TD>
<td width="25%"><B><A HREF="results.asp?view=Department&Department=<% Response.Write RSEmps("Department" %>"><% Response.Write RSEmps("Department" %></A></B></TD>
</tr>
<%
RSEmps.MoveNext
loop
%>
=======================