Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/06/2007, 15:29
luise32
 
Fecha de Ingreso: noviembre-2006
Ubicación: Pasto
Mensajes: 154
Antigüedad: 17 años, 5 meses
Puntos: 1
Re: Lista de años en un drop down list

Solucione el problema pero de otra forma :D aqui esta por si a alguien le interesa

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim m As Integer
xcon.Open()
xsel.CommandText = "select to_char(sysdate,'yyyy') from dual" 'PARA REALIZAR CONSULTAS EN BASES DE DATOS
m = xsel.ExecuteScalar()
xcon.Close()

Dim anio As Integer = 1970

Do While anio <= m
Me.DropDownList1.Items.Add(anio)
anio += 1
Loop

End Sub
End Class

Jeje, tanto lio q me hice en la cabeza y la solucion estuvo en mis manos, gracias por la ayuda me abrieron el camino :D

Última edición por luise32; 12/06/2007 a las 16:06