Solved

Page Load and Page Prerender

Posted on 2010-11-21
5
803 Views
Last Modified: 2012-06-21
Hi

What is the difference between Page Load and Page Prerender in asp.net .

Regards
Karan Gupta
0
Comment
Question by:KaranGupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Dale Burrell earned 250 total points
ID: 34185488
Have a look through the page life cycle http://msdn.microsoft.com/en-us/library/ms178472.aspx

In essence Page_Load is called when the page is being loaded with data which is near the beginning of the lifecycle.

Page_PreRender is called just before asp.net attempts to render your page (which at this point consists of a control tree) into HTML which is near the end of the lifecycle.
0
 
LVL 23

Assisted Solution

by:Rajkumar Gs
Rajkumar Gs earned 250 total points
ID: 34185502
Please see the attached diagram which will self explanatory.

Raj
o-aspNet-Page-LifeCycle.jpg
0
 

Author Comment

by:KaranGupta
ID: 34193844
What is the requirement for two events page load and page pre render.

What are the things we can do in page load and what different things we can do in page prerender.
0
 
LVL 21

Expert Comment

by:Dale Burrell
ID: 34193891
Anything that doesn't depend on something that hasn't happened yet. It too complicated to explain in a simple question, you need to read the links about the life cycle and then ask specific questions.
0
 

Author Closing Comment

by:KaranGupta
ID: 34194204
Thanks
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Read top line from CSV file 14 60
MessageBox Appear behind a form in Runtime 1 32
dropdownlist in asp.net vb. 3 24
VB .net 2010 Byte array 2 24
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question