A
AJ
Hello, I have a page with user controls 1,2,3.
1-will always load in the page
2 or 3 will load depending on the action that is taken in
1.
There are events/delegates in 1 that will tell 2 or 3 to
load with data. The only way I'm accomplishing this now
is I'm loading 2 and 3 on the page's init event, setting
their visible properties to false and just set visible
properties for 2 or 3 to true when a certain event is
raised from 1.
However, I don't want to do that I just want to
LoadControl and Controls.Add 2 or 3 depending on the
action in 1. I tried this but the event doesn't fire
because it is not loaded in the Page's Init event.
I guess I could have a hidden field that will tell init
what to load but is their a better way?
1-will always load in the page
2 or 3 will load depending on the action that is taken in
1.
There are events/delegates in 1 that will tell 2 or 3 to
load with data. The only way I'm accomplishing this now
is I'm loading 2 and 3 on the page's init event, setting
their visible properties to false and just set visible
properties for 2 or 3 to true when a certain event is
raised from 1.
However, I don't want to do that I just want to
LoadControl and Controls.Add 2 or 3 depending on the
action in 1. I tried this but the event doesn't fire
because it is not loaded in the Page's Init event.
I guess I could have a hidden field that will tell init
what to load but is their a better way?