Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user control events firing before page events

Status
Not open for further replies.

sds814

Programmer
Feb 18, 2008
164
US
On the aspx page_load event, I set properties that are defined on a user control. The user control has a page_initialization event and a modal popup load event. Before the page load event of the aspx page fires the page_initialization and modal popup load event fire causing errors as those properties haven't been set.

What changes do I have to make so the page load event of the aspx finishes and then the user control events fire?

Thanks.
 
I was able to get the code working by setting the properties for the usercontrol on the page_init of the aspx page. So I believe the order is: page_init (aspx page), user control events, page_load (aspx page).
 
i came up with unexpected results...
i put into my session the start of each event

PI_controls_files:468
PI_entryppl_cb:468
PL_entryppl_cb:468
PL_controls_files:484


-PI is the Page Init event and PL is the Page Load event
-controls_files is the codebehind of my usercontrol
-entryppl_cb is the codebehind of my entry form
-the number is the millisecond. kinda pointless but verifies the ordering.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top