Can someone please explain to me the difference between methods and events in the ASP.NET page life cycle?
Can someone please explain to me the difference between methods and events in the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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