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 AMbyASP.NET 3.5

相关文章:

  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-10-15
  • 2021-11-09
  • 2021-05-19
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2021-07-25
  • 2021-09-15
  • 2022-12-23
  • 2021-05-16
  • 2021-10-23
相关资源
相似解决方案