Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 4th, 2003, 05:30 AM
Registered User
 
Join Date: Jun 2003
Location: Winchester, Hants, United Kingdom.
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
  #2 (permalink)  
Old June 4th, 2003, 06:08 PM
Neo Neo is offline
Registered User
 
Join Date: Jun 2003
Location: Dalian, Liaoning, China.
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.
  #3 (permalink)  
Old June 10th, 2003, 02:46 AM
Registered User
 
Join Date: Jun 2003
Location: , , United Kingdom.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.