What is PreInit ,Init and Unload method in ASP.NET??
What will exactly happens in PreInit,Init and Unlod Method of ASP.NET Life cycle..Please Explain me with some example.Thank you in advance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 15, 2020, 6:13 AM EDT
Arshad AliRank #2,660 · 522 reputationPosted Oct 15, 2020, 6:14 AM EDT
Arshad AliRank #2,660 · 522 reputationPosted Oct 15, 2020, 6:15 AM EDT
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 6, 2023, 8:38 AM EST
the Page_Init event fires only the first time the page is loaded. When you use a web form and post back to this page again, the Page_Init event doesn't fire.
Init event initializes the control property and the control tree is built.
The UnLoad phase is the last phase of the page life cycle.
It raises the UnLoad event for all controls recursively and lastly for the page itself.