[C#] Nested master page not firing Page_Load event-VBForums
Results 1 to 2 of 2

Thread: [C#] Nested master page not firing Page_Load event

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Location
    City of Angles. Right Angles.
    Posts
    110

    [C#] Nested master page not firing Page_Load event

    I have used the information from MSDN to create a nested master page. I want a main master page for my site, and a nested master page for my Administration panel. In the CS code for the nested master, I am checking the logged in state against my session in the Page_Load event, but that event never fires. How can I make that event fire on the nested master page? here is how my solution and pages are setup:

    /MainMaster.Master (this Page_Load event fires)
    /Default.aspx (MainMaster.master child) (this page load event fires)
    ./Admin/Admin.Master (MainMaster.Master child) (this page load event doesn't fire)
    ./Admin/Default.aspx (Admin.Master child) (this page load event fires)

    Ideas?

  2. #2
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: [C#] Nested master page not firing Page_Load event

    Check to see that the nested master page's AutoEventWireUp property is set to true.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.