Order of events: Page_Load in page and base page?

C

cmay

Can someone advise on this issue?

We are seeing a page where, on the first load the base page (the class
our page inherits from) fires it's PageLoad event first, followed by
our Page's PageLoad.

On postback we see the reverse order taking place, with the Base Page
firing last.

Can someone tell me if this is the expected behavior? Are you not
guaranteed to have these events fire in the same order?

Thanks!!
 
B

bruce barker \(sqlwork.com\)

events handlers tied to the same event source are called in random order. if
you need to control the order, override the OnLoad method instead of using
events, which will allow ordering.

-- bruce (sqlwork.com)
 

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
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top