Controls

Discussion in 'ASP .Net' started by Viorel Ghilas, Jun 26, 2003.

  1. Hi all

    I make a control and put it on the form. My control search on the page
    something and if it doesn't found must add one control on the form. I try
    myCotnrol.Page.Controls.Add(c) and I get error "A control cannot modify its
    parents' control collections.". How can I add a control to form from my
    control?

    with best regard
    Viorel Ghilas
     
    Viorel Ghilas, Jun 26, 2003
    #1
    1. Advertising

  2. Viorel Ghilas

    noname Guest

    http://samples.gotdotnet.com/quickstart/aspplus/doc/webpagelets.aspx

    go to the bottom of the page. there's a section on how to add controls at
    runtime. i'm a newbie, though, and not sure if this is what you need.

    "Viorel Ghilas" <> wrote in message
    news:OBox2d$...
    > Hi all
    >
    > I make a control and put it on the form. My control search on the page
    > something and if it doesn't found must add one control on the form. I try
    > myCotnrol.Page.Controls.Add(c) and I get error "A control cannot modify

    its
    > parents' control collections.". How can I add a control to form from my
    > control?
    >
    > with best regard
    > Viorel Ghilas
    >
    >
     
    noname, Jun 26, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. trinitypete

    HTML Controls and User controls

    trinitypete, Jun 25, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    3,463
    trinitypete
    Jun 26, 2003
  2. Arulraja
    Replies:
    3
    Views:
    1,405
    William F. Robertson, Jr.
    Oct 17, 2003
  3. Jeff Tolman
    Replies:
    0
    Views:
    3,043
    Jeff Tolman
    Nov 4, 2003
  4. Axel Dahmen
    Replies:
    1
    Views:
    542
    Teemu Keiski
    Nov 12, 2003
  5. Nathan Sokalski
    Replies:
    4
    Views:
    1,170
    Muhammad Naveed Yaseen
    Sep 5, 2007
Loading...

Share This Page