Solved

Page Load and Page Prerender

Posted on 2010-11-21
5
798 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now