mcpeekj
Vendor
- Sep 21, 2001
- 105
hi all. thanks for all the help to date. all of my functionality is done and working smoothly. now i have a cosmetic question. i want to alternate row colors for my listing page. i've found a handful of code snippets on the web, but haven't been able to get anything to work. here's what is closest:
<TABLE border="1" cellpadding="0" cellspacing="0" width="400">
<%
Dim Row, intRow
intRow = 0
For intRow = 1 To rs.RecordCount
if (Row = 2) Then
response.write("<TR bgcolor=white >"
Row = 1
Else
Row = 2
response.write("<TR bgcolor=Silver>"
End if
%>
<TD class="tblContent"><%= intRow %>
</TD>
</TR>
<%
Next
%>
</TABLE>
with this code, it writes each row number, one after the other. it doesn't actually bring anything out of my db. so, if you would please, tell me how to get this code to do something relevant, or point me in the direction of some better code...
<TABLE border="1" cellpadding="0" cellspacing="0" width="400">
<%
Dim Row, intRow
intRow = 0
For intRow = 1 To rs.RecordCount
if (Row = 2) Then
response.write("<TR bgcolor=white >"
Row = 1
Else
Row = 2
response.write("<TR bgcolor=Silver>"
End if
%>
<TD class="tblContent"><%= intRow %>
</TD>
</TR>
<%
Next
%>
</TABLE>
with this code, it writes each row number, one after the other. it doesn't actually bring anything out of my db. so, if you would please, tell me how to get this code to do something relevant, or point me in the direction of some better code...