Creating controls at runtime

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

i have a label on my webpage.
I want to create some copys of this label at runtime, since i don't know how
many labels i will be needing.

How can i do this?

Thx
 
i have a label on my webpage.
I want to create some copys of this label at runtime, since i don't
know how many labels i will be needing.

How can i do this?



Dim newLabel as Label()

For i = 0 as integer to NumLabel
newLabel = new Label()
PlaceHolder.controls.add(newLabel)
Next

PlaceHolder is a placeholder on your page
 
And if I was to buttons this way, how would I write the onclick-event of
those buttons ?
 
Back
Top