User HTML Controls

Discussion in 'ASP .Net Web Controls' started by Slawek, Sep 11, 2003.

  1. Slawek

    Slawek Guest

    Hi, I have a problem that I can't resolve. I have created a user control
    which is included in asp.net page (<@register...etc). All I need is to move
    this control from one place on the page to another(in Page_Load method). For
    example my control belongs to one cell (<td>) tag and I have to move it to
    another cell(<td>). In c# code I use <new tag>.Controls.Add(mycontrol) and
    it works perfect, accept that after moving control, all events for my
    control are fired twice(for example Load in my control and even pressing
    button in it). It looks like after adding control to new tag there is two
    instances of my control on the page. Because of this my application works
    improperly. I don't know how to fix it. Any suggestions ??

    Regards
    Slawek
    Slawek, Sep 11, 2003
    #1
    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,379
    trinitypete
    Jun 26, 2003
  2. Axel Dahmen
    Replies:
    1
    Views:
    491
    Teemu Keiski
    Nov 12, 2003
  3. Nathan Sokalski
    Replies:
    4
    Views:
    1,144
    Muhammad Naveed Yaseen
    Sep 5, 2007
  4. Faizan Ahmed
    Replies:
    1
    Views:
    283
    John Saunders
    Jan 4, 2005
  5. Faizan Ahmed
    Replies:
    1
    Views:
    363
    John Saunders
    Jan 4, 2005
Loading...

Share This Page