• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 814
  • Last Modified:

Page Load and Page Prerender

Hi

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

Regards
Karan Gupta
0
KaranGupta
Asked:
KaranGupta
  • 2
  • 2
2 Solutions
 
Dale BurrellDirectorCommented:
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
 
Rajkumar GsSoftware EngineerCommented:
Please see the attached diagram which will self explanatory.

Raj
o-aspNet-Page-LifeCycle.jpg
0
 
KaranGuptaAuthor Commented:
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
 
Dale BurrellDirectorCommented:
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
 
KaranGuptaAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now