开发者

ASP.NET Page life cycle: methods vs Events

开发者 https://www.devze.com 2023-04-11 04:14 出处:网络
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

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:

ASP.NET Page life cycle: methods vs Events

For more information about the ASP.NET Page Lifecycle, see the full overview on MSDN:
http://msdn.microsoft.com/en-us/library/ms178472.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消