ASP.NET Page life cycle: methods vs Events
Can someone please explain to me the 开发者_开发问答difference between methods and events in the ASP.NET page life cycle?
When a page runs a series of methods are executed. These methods in turn raise events that can be handled by the user to perform various tasks like initializing controls, populating control properties, executing control behavioral code, etc.
Here is an excellent flowchart from MSDN that shows the different methods that are executed, and the events that are raised from those methods:
For more information about the ASP.NET Page Lifecycle, see the full overview on MSDN:
http://msdn.microsoft.com/en-us/library/ms178472.aspx
精彩评论