Geeks With Blogs
ICaramba Miguel Castro's blog about .NET and its effect on National Security, the Eco-system, and his daughter's sleeping patterns.
I started using nested Master Pages in Orcas last week and ran into a small snag.  I could not get a break point to fire on the Page_Load in the child Master Page's code-behind class.  In fact I noticed that the code wasn't running at all.  After 30 minutes of beating my head against the wall, I tried changing the Page_Load method to an override of OnLoad and that worked perfectly.  Then it ocurred to me to check the AutoEventWireup value in the Page directive and sure enough it was set to False.  This is the first situation I've seen where it does not default to True so if you come across this, jump straight there and you should find the problem. Posted on Monday, September 10, 2007 11:13 AM | Back to top

Copyright © Miguel A. Castro | Powered by: GeeksWithBlogs.net