>>>>Hi,
>>>>
>>>>I have a Master page where I put some code in the page_load in the code behind file. I also have code in the page_load of the content pages. How come the code in the master file does not run?
>>>>
>>>>What I am trying to do is programmatically set the Text of a label on the master page, every time any page based on this master page is displayed.
>>>
>>>Hmmm, it should work. Can you post the Page_Load event code from your Master page? Have you set your breakpoint in that method to make sure it truly wasn't running?
>>
>>I just set a breakpoint in the child page_load and followed it through. It never ran the code in my IASLeftNav.Master, but it ran the code in my IASOuter.Master which is set as the master page for my IASLeftNav.Master. Shouldn't it have still run the code in my LeftNav one?
>
>Sounds like it's a nested master page? (Might be a dumb question, but I have limited experience with nested master pages)
>
>Regardless, it should run all page load. Let me do some brainstorming and see what I can come up with...
Yes, it's a nested master page. I've worked around it for now using the outer master page, but am still very interested in working out why the "middle" master page's code did not run.