Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/01/2007, 11:58
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 6 meses
Puntos: 381
Re: Pintar filas ASP+JAVASCRIPT

Iterando por cada registro de un recordset podría ser algo así

Código HTML:
<table>
<%
var estilo;
var m = 0;
while(!rs.EOF){ 
	estilo = m%2 == 0 ? "estilo1" : "estilo2";
%>
	<tr class="<%=estilo%>">
		<td><%=rs("tuCampo")%></td>
	</tr>
<%
	m++;
}
%>

</table> 
Prueba y me cuentas