Welcome to Bilal Haidar [MVP, MCT] Official Blog Sign in | Join | Help

Nested MasterPage Not Firing Page_Load Event

I faced a situation today where I am trying to attach to the page_load event of a child nested master page to load some data on the master page itself. The event was not firing at all. Later on I figured out that the AutoEventWireup property on the Page directive is false!!!

Seems by default when you create a nested master page, its AutoEventWireup property is set to false! What you need to do is just make it true!

 

Hope this helps!

Regards

Published Thursday, March 27, 2008 1:42 AM by BilalHaidar [MVP]

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Nested MasterPage Not Firing Page_Load Event

So simple, I can't believe I overlooked it!  thanks a lot.

Friday, April 25, 2008 11:07 AM by matthew

# re: Nested MasterPage Not Firing Page_Load Event

Thank you for this!  Saved me a bunch of time.  I really appreciate it :)

- Evan

Wednesday, November 05, 2008 2:19 PM by Evan

Leave a Comment

(required) 
required 
(required)