Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Master Page Page_Load not running
Message
De
19/08/2010 17:08:14
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
19/08/2010 17:03:03
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01477409
Message ID:
01477418
Vues:
27
>>>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...
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform