When click the Button control which EVENT are Call step by step ?http://forums.asp.net/t/316477.aspx/1?When+click+the+Button+control+which+EVENT+are+Call+step+by+step+Fri, 22 Aug 2003 12:06:36 -0400316477316477http://forums.asp.net/p/316477/316477.aspx/1?When+click+the+Button+control+which+EVENT+are+Call+step+by+step+When click the Button control which EVENT are Call step by step ? When click the Button control which EVENT are Call step by step ? Please ans. 2003-08-22T09:36:38-04:00316546http://forums.asp.net/p/316477/316546.aspx/1?Re+When+click+the+Button+control+which+EVENT+are+Call+step+by+step+Re: When click the Button control which EVENT are Call step by step ? It goes something like this: 1. The button is pressed on the client resulting in the form being submitted (via the use of the doPostBack method. 2. This results in a HTTP request being issued and sent to the server. 3. This is processed by the HTTP Handler factory, which looks up the page type stored in the ASP.NET cache and a NEW instance of that page class is created and used to handle the incoming HTTP request. 4. The page automatically builds it control tree, which will consist of those controls explicitly declared at design time, and then the Init event of the page (and all of it's constituent controls) is then fired. 5. The TrackViewState method is called, followed by the LoadViewState method (if veiwstate is enabled). 6. If the IPostBackDataHandler interface has been implemented, the LoadPostData method is called. 7. The Load Event is the fired. 8. If the IPostBackDataHandler interface has been implemented the RaisePostDataChangedEvent method is called. 9. If the IPostBackEventHandler interface has been implemented , the RaisePostBackEvent method is called. 10. The PreRender event is fired. 11. The SaveViewState method is then called. 12. The Render method is called. 13. Finally, the Unload event is fired, followed by the Dispose method being called 14. The response is then sent to the client. As far as I can remember that's about the full lifecycle. (Although someone will probably be ablse to point out anything I've missed). 2003-08-22T11:45:04-04:00