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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recordset paging

Status
Not open for further replies.

mihalych

Programmer
Jul 24, 2003
27
US
<tr><td>
<% for i = 1 to rs.PageCount %>
<a href=&quot;product.asp?subcategid=<%=strSubcategoryID%>&subcategoryName=<%=strSubcategoryName%>&pg=<%=i%>&quot;><%=i%></a>
<%next%></td></tr>

this code works well and displays products and number of pages (underlined links to them). But how can I remove the link from the current page being display?
 
if pg is equal to currentCursor page then just display i not the link around it
 
thanks, it works but it displays the last page without link always. How can it start from first page?
 
well, first page must be 1 so if currentPage 1 dont have href
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top