Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Adding Dynamic User Control WITH PARAMETERS

Reply
Thread Tools

Adding Dynamic User Control WITH PARAMETERS

 
 
Jason Chu
Guest
Posts: n/a
 
      07-14-2005
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Parameters to user control within another user control hmikki ASP .Net Web Controls 1 10-19-2007 02:00 AM
Adding a Dynamic User Control from the Base Page Class (and retaining it on Postback?) David Bowey ASP .Net Building Controls 2 04-05-2005 08:17 AM
Adding a Dynamic User Control from the Base Page Class (and retaining it on Postback?) David Bowey ASP .Net Web Controls 2 04-05-2005 08:17 AM
Dynamic Events from Dynamic Controls on a User Control - Guess What? Broken! mytestemailaccount@gmail.com ASP .Net 5 03-23-2005 05:06 PM
Dynamically Adding User Control with Child User Control Travis Pruitt ASP .Net Building Controls 0 01-13-2005 08:49 PM



Advertisments