Posted by Beauregard T. Shagnasty on 09/28/05 19:12
booner wrote:
> I was trying to simplify things - I have in fact used CSS - and done
> very similar to what you described (the table is created dynamically
> in ASP).
Even easier, then.
Within your loop:
intCount = 0
Do While Not oRs.EOF
intCount = intCount + 1
Response.Write "<tr>"
If intCount Mod 2 = 0 Then
strBgColor = "#ffffcc"
Else
strBgColor = "#ffffff"
End If
%>
<td style="background-color: <%= strBgColor%>"> <%= [yourvariables]
%></td>
<%
Response.Write "</tr>"
....
You could even eliminate the style on every other row, if it was to
match the background of the table or page...
--
-bts
-When motorcycling, never follow a pig truck
Navigation:
[Reply to this message]
|