Solved

Page Load and Page Prerender

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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