Hi all...
I have an asp page that pulls in a list from a SQl db. my goal is to format the table for easy reading. I would like to alternate the rows colors from White to Grey. Any ideas on how I could do this?
FYI: the code I am using is:
-----------------------------
<P>
<TABLE BORDER=1>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD><B><%= RS(i).Name %></B></TD>
<% Next %>
</TR>
<% DO While Not RS.EOF %>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD VALIGN=TOP>
<%= RS(i) %>
</TD>
<% Next %>
</TR>
<%
RS.MoveNext
Loop
RS.Close
OBJdbConn.Close
Set OBJdbConn = Nothing
%>
</Table>
---------------------------------
Thanks in advance for any help...
Regards,
MDA
I have an asp page that pulls in a list from a SQl db. my goal is to format the table for easy reading. I would like to alternate the rows colors from White to Grey. Any ideas on how I could do this?
FYI: the code I am using is:
-----------------------------
<P>
<TABLE BORDER=1>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD><B><%= RS(i).Name %></B></TD>
<% Next %>
</TR>
<% DO While Not RS.EOF %>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD VALIGN=TOP>
<%= RS(i) %>
</TD>
<% Next %>
</TR>
<%
RS.MoveNext
Loop
RS.Close
OBJdbConn.Close
Set OBJdbConn = Nothing
%>
</Table>
---------------------------------
Thanks in advance for any help...
Regards,
MDA