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).
sai2002
Member
35 Points
7 Posts
When click the Button control which EVENT are Call step by step ?
Aug 22, 2003 09:36 AM|LINK
Tryster
Member
325 Points
63 Posts
Re: When click the Button control which EVENT are Call step by step ?
Aug 22, 2003 11:45 AM|LINK