Adding Dynamic User Control WITH PARAMETERS

Discussion in 'ASP .Net Building Controls' started by Jason Chu, Jul 14, 2005.

  1. Jason Chu

    Jason Chu Guest

    Is there a way to dynamically add a user control to a page, AND before the
    page_load of the user control fires, that you have some of the public
    variables in the user control set?
    I know that if you drag in a user control, u can set the variables in the
    page_load of the caller page, then the page_load of the UC will run (using
    the set variables).

    But when doing this dynamically...the page_load of the UC runs as soon as
    you loadcontrol() it.

    So if I want to pass something like...a ListItemCollection to the UC before
    the Page_load starts, how do I do it?
     
    Jason Chu, Jul 14, 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. Replies:
    5
    Views:
    5,590
  2. Travis Pruitt

    Dynamically Adding User Control with Child User Control

    Travis Pruitt, Jan 13, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    188
    Travis Pruitt
    Jan 13, 2005
  3. David Bowey
    Replies:
    2
    Views:
    209
    Nick Stansbury
    Apr 5, 2005
  4. David Bowey
    Replies:
    2
    Views:
    208
    Nick Stansbury
    Apr 5, 2005
  5. hmikki
    Replies:
    1
    Views:
    145
    Nathan Sokalski
    Oct 19, 2007
Loading...

Share This Page