Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/01/2010, 10:47
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 1 mes
Puntos: 20
Respuesta: Select automatico cada nuevo mes...

Cita:
Iniciado por Myakire Ver Mensaje
Código ASP:
Ver original
  1. <select name="periodo">
  2. <%
  3. MesInicial  = 8
  4. AnioInicial = 2009
  5. While (MesInicial <= Month(Date())) OR AnioInicial < Year(Date)
  6.    %>
  7.    <option><%=MonthName(MesInicial) & " " & AnioInicial %>
  8.    <%
  9.      MesInicial = MesInicial + 1
  10.      If MesInicial > 12 Then
  11.         MesInicial = 1
  12.             AnioInicial = AnioInicial + 1
  13.      End if
  14. Wend
  15. %>
  16. </select>
Wooww mucho mejor así donde va a parar!!

Muchas gracias maestro :)