Print Page | Close Window

2 col of dynamic data for record paging

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7996
Printed Date: 01 April 2026 at 2:32am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: 2 col of dynamic data for record paging
Posted By: ngaisteve1
Subject: 2 col of dynamic data for record paging
Date Posted: 11 December 2003 at 12:52am

I have these little code:

<%
 ' Loop through our records and ouput 1 row per record
 iRecordsShown = 0      
 DO WHILE iRecordsShown < iPageSize AND NOT rs.eof           
  response.write "<tr valign=top><td>" & rs("ProductCat") & "&nbsp;</td>"
  response.write "<td><input type='checkbox' id=" & rs("ProductCatID") & " name='list' value=" & rs("ProductCatID") & " ></td>"
  ' Increment the number of records we've shown
  iRecordsShown = iRecordsShown + 1
  rs.MOVENEXT
 LOOP
%>

The enhancement I want to make it to have 2 column instead of one column, so that I can save up empty space. How do I do it? Thanks.




Replies:
Posted By: fernan82
Date Posted: 11 December 2003 at 1:10am
<%
 ' Loop through our records and ouput 1 row per record
 iRecordsShown = 0      
 DO WHILE iRecordsShown < iPageSize AND NOT rs.eof           
  response.write "<tr valign=top><td>" & rs("ProductCat") & "&nbsp;</td>"
  response.write "<td><input type='checkbox' id=" & rs("ProductCatID") & " name='list' value=" & rs("ProductCatID") & " ></td>"
  iRecordsShown = iRecordsShown + 1
  rs.MoveNext

  If Not rs.EOF Then
<td>" & rs("ProductCat") & "&nbsp;</td>"
  response.write "<td><input type='checkbox' id=" & rs("ProductCatID") & " name='list' value=" & rs("ProductCatID") & " ></td>"
  ' Increment the number of records we've shown
  iRecordsShown = iRecordsShown + 1
  rs.MOVENEXT
  Else
   Response.Write("<td>&nbsp;</td><td>&am p;nbsp;</td>")
  End If
 LOOP
%>

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: ngaisteve1
Date Posted: 11 December 2003 at 2:13am
. It works! Thank you very much.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net