Ver Mensaje Individual
  #5 (permalink)  
Antiguo 07/04/2010, 13:44
Avatar de Wasper
Wasper
 
Fecha de Ingreso: julio-2006
Ubicación: de cai, picha!!!
Mensajes: 1.030
Antigüedad: 18 años, 9 meses
Puntos: 41
Respuesta: Como hacer un FOR en ASP

Código ASP:
Ver original
  1. <%@ Language=VBScript %>
  2. <% Response.addHeader " ", "no-cache" %>
  3. <% Response.CacheControl = "Private" %>
  4. <% Response.Expires=0 %>
  5.  
  6. <%
  7. dim cuen
  8. %>
  9. <table width="430" height="103" border="1" align="center">
  10.   <tr>
  11.  
  12.     <td width="213"><p>Distribuidor:</p>
  13.     <p>Local:</p>
  14.     <p>Fecha:</p></td>
  15.     <td width="130"><p>Gu&iacute;a de Despacho </p>
  16.     <p>N&ordm;:</p></td>
  17.   </tr>
  18. </table>
  19. <p align="center">&nbsp;</p>
  20.  
  21. <%For cuen = 90001 To 90010 Step 1 'HE CAMBIADO EL FOR PARA NO REPITA LA CABECERA 10 VECES..., DE ESTA MANERA CREA 1 CABECERA Y 10 FILAS....
  22. <table width="351" border="1" align="center">
  23.   <tr>
  24.      <td>Sel </td>  
  25.     <td width="36">Csr:</td>
  26.     <td width="70">Modelo:</td>
  27.     <td width="47">Serie:</td>
  28.     <td width="170">Comentarios:</td>
  29.   </tr>
  30.   <tr>
  31.   <td width="21"><input type="checkbox" name="cod" value=""></td>
  32. <td height="42"><input name="csr" size="20" value=<%=response.write (""&cuen&"") %>></td>
  33. <td><input  name="artefacto"></td>
  34.     <td><input  name="serie"></td>
  35. <td><textarea name="comentarios" cols="30" rows="1" wrap="VIRTUAL"></textarea></td>
  36.  
  37.  </tr>
  38.  
  39. </table>
  40.   <%next%>
  41. <p align="center">&nbsp;</p>

Prueba poniendo el For donde te digo campeon.
__________________
Saludos, Jose

Paginas web y SEO
Anuncios por palabras