Problem with user control

Discussion in 'ASP .Net Web Controls' started by Diego, Feb 9, 2005.

  1. Diego

    Diego Guest

    hi everybody, i have a problem with user control, i load the control
    dinamically
    like this.

    private oControl as UserPControl

    oControl=LoadControl("UControl/UserPControl.ascx")

    and I have another web server control it has a property that recieve a type
    control
    like this:

    windowscontainer1.PanelLeft=oControl

    this load the user control in panel left, the problem is that the user
    control is dinamically so the user control interact with the database just
    show the user control but not the data, just show the data when i call the
    function of the user control from the page aspx like this:

    oControl.LoadData()
    windowscontainer1.PanelLeft=oControl

    with this statement load data but without it not, i wanna know if u can
    help,very thanks.

    Atte. Diego Alonso Carbajal Vasquez
     
    Diego, Feb 9, 2005
    #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. Tom Rowton
    Replies:
    2
    Views:
    670
    Tom Rowton
    Aug 1, 2003
  2. vatech1993
    Replies:
    4
    Views:
    5,691
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  3. Replies:
    0
    Views:
    436
  4. Mad Scientist Jr
    Replies:
    0
    Views:
    640
    Mad Scientist Jr
    Mar 22, 2006
  5. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    551
    Jonathan Wood
    Feb 2, 2010
Loading...

Share This Page