J
Jason Chu
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?
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?