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.
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.