needhelpso
Programmer
Hi all again,
Here is the code that works:
Dim elements() As String = New String() {"1", "2", "3"}
Dim i As Integer
For i = 0 To ubound(elements)
Me.dropdownlist2.Items.Add(New ListItem(elements(i)))
Next
However, instead of New String() {"1", "2", "3"} how can I add the numbers 1 through 52? Instead of listing all 52 numbers out?
Any help will be great.
Here is the code that works:
Dim elements() As String = New String() {"1", "2", "3"}
Dim i As Integer
For i = 0 To ubound(elements)
Me.dropdownlist2.Items.Add(New ListItem(elements(i)))
Next
However, instead of New String() {"1", "2", "3"} how can I add the numbers 1 through 52? Instead of listing all 52 numbers out?
Any help will be great.