Adding user controls to a panel

Discussion in 'ASP .Net Web Controls' started by Ufit, Jun 28, 2006.

  1. Ufit

    Ufit Guest

    I created user control (myctrl.ascx) which is grid and images in it
    When I do this code in vb

    dim c as new myctrl
    Panel1.Controls.Add(c)

    I get nothing in the panel. Why?? What do i have to do to display that controls
    in there?

    Great thanks for help.

    Ufit
    Ufit, Jun 28, 2006
    #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. Marc Bishop

    Adding user control to a panel.

    Marc Bishop, Nov 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,023
    Michael Evanchik
    Nov 10, 2003
  2. Harry
    Replies:
    3
    Views:
    516
    Harry Singh
    Nov 10, 2003
  3. HS1
    Replies:
    3
    Views:
    463
  4. HS1
    Replies:
    4
    Views:
    8,264
    Babu Kalakrishnan
    Dec 8, 2004
  5. JC
    Replies:
    1
    Views:
    724
    Michael Rauscher
    Aug 9, 2006
Loading...

Share This Page