Radiobuttonlist Array

elormdag

New member
Joined
Sep 22, 2011
Messages
1
Programming Experience
Beginner
I try to create an array of radiobuttonlist like this

Dim RdButtonArray(5) As RadioButtonList
For i As Integer = 1 To UBound(ButtonArray)
ButtonArray(i) = New RadioButtonList() With {.EnableViewState = True, .Enabled = True, .Visible = True, .ID = "radiobuttonlistt" & i}
RdButtonArray(i).Items.Add("I am alive")'Displaying radiobuttonlist with contents
Next

But this code does not display anything on the web page when it loads.
 

Latest posts

Back
Top