Results 1 to 4 of 4

Thread: [RESOLVED] Reference dynamic added controls

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    198

    Resolved [RESOLVED] Reference dynamic added controls

    Hi,

    I got a question regarding the *damned* dynamic controls. Just wanted to know if its possible to add some controls on the page init event and use them multiple times (like pointers), i just cant get it to work.

    so on page_init
    Code:
    dim l as new linkbutton
    l.text = "Test"
    l.id = "Test"
    l.url = "www.whataver.com"
    me.form.controls.add(l)

    then somewhere else

    Code:
    for i as integer=0 to 5
    dim l as new LinkButton
    l = me.form.findcontrol("Test")
    panel.controls.add(l)
    next
    I just get the control one time and then its no longer in the form controls collection... ANY help would be appreciated

    Figa
    Last edited by figa; Mar 22nd, 2007 at 09:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width