F
Fred
I have items that are variable in number that I wish to display on a web
form. And I would like to be able to specify or access the contents of
item(x) by referenced the x elements of that array/collection.
I have tried something like the following on the form load event but though
I receive no build errors nothing ever shows on the form.
Dim ArrLabel(10) As WebControls.Label
For x = 1 To 10
ArrLabel(x) = New WebControls.Label
ArrLabel(x).Visible = True
ArrLabel(x).Text = "Label "
Page.Controls.Add(ArrLabel(x))
Next
Any help or guidance is appreciated.
Fred
form. And I would like to be able to specify or access the contents of
item(x) by referenced the x elements of that array/collection.
I have tried something like the following on the form load event but though
I receive no build errors nothing ever shows on the form.
Dim ArrLabel(10) As WebControls.Label
For x = 1 To 10
ArrLabel(x) = New WebControls.Label
ArrLabel(x).Visible = True
ArrLabel(x).Text = "Label "
Page.Controls.Add(ArrLabel(x))
Next
Any help or guidance is appreciated.
Fred