ASP.NET页面生命周期:方法与事件 [英] ASP.NET Page life cycle: methods vs Events

查看:178
本文介绍了ASP.NET页面生命周期:方法与事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可有人请向我解释,在ASP.NET页面生命周期方法和事件之间的区别?

Can someone please explain to me the difference between methods and events in the ASP.NET page life cycle?

感谢

推荐答案

在页面运行一系列的方法执行。这些方法又加薪事件可以由用户进行处理,以执行各种任务,如初始化控制,填充控件属性,执行控制,行为code等

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.

下面是从MSDN极好流程图,显示所执行的不同的方法,和从这些方法引发的事件:

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页面生命周期的更多信息,请参阅MSDN上的完整概述:

http://msdn.microsoft.com/en-us/library/ms178472.aspx

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

这篇关于ASP.NET页面生命周期:方法与事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆