Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2003, 05:30 AM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PhilePage.cs Page_Load event

In Bellinaso/Hoffman's book they use a PhilePage superclass, which inherits from System.Web.UI.Page, to contain code common to all pages in their app. This seems like a great idea. However, when I run the code and call say Default.aspx, the Page_Load event of the PhilePage is called AFTER that of the Default.aspx page! This seems to make a nonsense of the whole idea, or am I missing something!?

Thanks
Matt
 
Old June 4th, 2003, 06:08 PM
Neo Neo is offline
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Neo
Default

Quote:
quote:Originally posted by betulus
 In Bellinaso/Hoffman's book they use a PhilePage superclass, which inherits from System.Web.UI.Page, to contain code common to all pages in their app. This seems like a great idea. However, when I run the code and call say Default.aspx, the Page_Load event of the PhilePage is called AFTER that of the Default.aspx page! This seems to make a nonsense of the whole idea, or am I missing something!?

Thanks
Matt
I cannot to understand you say.
>>when I run the code and call say Default.aspx, the Page_Load event of the PhilePage is called AFTER that of the Default.aspx page!
What do you want to do?
PhilePage's Page_Load event will run before other page events of all.
you can to do a sample, put "Response.Write" in PhilePage's PhilePage_Load event. and put in other page of another. then retry open your page...

What the web can be.
 
Old June 10th, 2003, 02:46 AM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too have had the same problem, I found that in the OnInit of the webform if you change the order of the calls so that base.OnInit(e); fires before InitializeComponent(); the PhilePage events will run first.

Regards

John





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load external script within Page_Load Event kwilliams General .NET 0 October 9th, 2006 10:56 AM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
PhilePage Class on p. 58 JeffSpitzer BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 8th, 2004 09:08 AM
PhilePage execution order jnorbut BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 28th, 2003 11:56 AM
PhilePage Session ? jfreise BOOK: ASP.NET Website Programming Problem-Design-Solution 0 August 20th, 2003 10:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.