Solved

Page Load and Page Prerender

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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