Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Master Page Page_Load not running
Message
De
19/08/2010 17:03:03
 
 
À
19/08/2010 16:52:20
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01477409
Message ID:
01477416
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?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform