I am building a new Knowledge Base system and I have one question. The database works great and no issues, but when I get the list of questions, I would like to show the user with a different color every other result. For Example, the knowledge base for Windows has 10 questions. Well, I would like it when returned from the database to show first line gray, second line white, third line gray, etc etc etc. Kind of like this here.
Is there in any way I can do the same? Otherwise when you return the records, each record looks the same color and looks boring. Anyone know how to do this? This is my code:
<%
while not RS.EOF
%>
<table width="800" border="0" cellpadding="0" cellspacing="0" class="RecsList">
<!--DWLayoutTable-->
<tr>
<td width="660" valign="top" bgcolor="#666666"><font color="#FFFF00" size="3"><strong><em><font size="1">Q:</font></em></strong></font><font color="#FFFFFF" size="1">
</font><font color="#FFFFFF"><%=RS("Problem"
%> </font></td>
<td width="140" valign="top" bgcolor="#666666">
<div align="right"><font color="#FFFFFF">Date Of: <%=RS("KDate"
%></font> </div></td>
</tr>
</table>
<%
' This is the loop command. It calls for the next record
RS.MoveNext
WEND
%>
Thankx for your help.
Is there in any way I can do the same? Otherwise when you return the records, each record looks the same color and looks boring. Anyone know how to do this? This is my code:
<%
while not RS.EOF
%>
<table width="800" border="0" cellpadding="0" cellspacing="0" class="RecsList">
<!--DWLayoutTable-->
<tr>
<td width="660" valign="top" bgcolor="#666666"><font color="#FFFF00" size="3"><strong><em><font size="1">Q:</font></em></strong></font><font color="#FFFFFF" size="1">
</font><font color="#FFFFFF"><%=RS("Problem"
<td width="140" valign="top" bgcolor="#666666">
<div align="right"><font color="#FFFFFF">Date Of: <%=RS("KDate"
</tr>
</table>
<%
' This is the loop command. It calls for the next record
RS.MoveNext
WEND
%>
Thankx for your help.