majorbroncosfan
Programmer
I currently am trying to run a table in an active server page that will be in alternating colors for the rows. I have declared a recordset and am using the following code:
do while not (prstCurrent.eof)
if pstrColor = "#FFFFFF" then
pstrColor = "#9999FF"
response.write "<tr bgcolor=" & pstrColor & ">"
else
pstrColor="#FFFFFF"
response.write "<tr bgcolor=" & pstrColor & ">"
end if
...
prstCurrent.MoveNext
...
Is this correct or is there a better way to do this?
do while not (prstCurrent.eof)
if pstrColor = "#FFFFFF" then
pstrColor = "#9999FF"
response.write "<tr bgcolor=" & pstrColor & ">"
else
pstrColor="#FFFFFF"
response.write "<tr bgcolor=" & pstrColor & ">"
end if
...
prstCurrent.MoveNext
...
Is this correct or is there a better way to do this?