Code:
<%
While Not rsTest.EOF
Field1 = rsTest.Fields("Field1")
rsTest.MoveNext
%>
<tr>
<td style="background-color: #00ff00;"><%=Field1%></td>
</tr>
<%
Wend
%>
For those of you who don't know, all this code is doing is repeating the table row once for every record in the rsTest recordset.
What I'd like to know, is how do I have the background colour of the cell alternate?
So every second cell could have a background-color: #ff00ff; for instance, while the rest should retain the style as set above.
Thanks in advance for the help.