Adding Dynamic User Control WITH PARAMETERS

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top