Referring to Controls' properties in Controls Collection

Referring to Controls' properties in Controls Collection

Post by Mark Wisniewsk » Wed, 04 Jul 2001 06:31:42



I have added several controls dynamically to a web form....I added the
controls to a panel control in my example.

Now I cannot refer to the properties of the controls while looping through
the collection...

For i = 1 to pnl1.controls.count
    if typeof pnl1.controls(i) is textbox() then
        pnl1.controls(i).text = "asdf"   'this doesn't work
    end if
Next

Please help!