Hi,
What is PreRender event in ASP.NET?
Thanks.
Loading
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.
Sam HobbsPosted Oct 15, 2011, 8:45 PM
Prabhu RajaPosted Oct 15, 2011, 1:12 AM
For every request to .aspx page the ASP.NET work processor will create a new instance of the corresponding page class object, once the request is executed the object of page class is destroyed automatically, the page object life cycle is controlled by its page life cycle events those are:
Javeed M ShaikhPosted Oct 14, 2011, 2:56 PM
Prerender event is Raised after the Page object has created all controls that are required in order to render the page, including child controls of composite controls. The Page object raises the PreRender event on the Page object, and then recursively does the same for each child control. The PreRender event of individual controls occurs after the PreRender event of the page.
Please do not forget to mark "Accepted Answer".