Populate DropDownList With Looped Numbers?
I need to populate a dropdownlist with a set of numbers that are looped (0 - 10). The code I have below works as a static option:
Dim numbers() As String = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}
...but I'd like to have a loop working something like this
Dim n As Integer = 0
For n = 0 To 10
Response.Write(n)
Next n
Does anyone know how to do this? Thanks.
|