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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeev KumarPosted Mar 6, 2023, 1:38 PM
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.
Arshad AliPosted Oct 15, 2020, 10:15 AM
Arshad AliPosted Oct 15, 2020, 10:14 AM
Mageshwaran RPosted Oct 15, 2020, 10:13 AM