I'm a newbie to ASP.Net, so my question might be a little bit dumb, I don't quite understand how each stage works in ASP.Net page life cycle, I wrote some code includes a simple page with a label control and a button control on it and found the sequence is :
1.Page initialization event handled.
2.Page load event handled.
3.Page prerender event handled.
4.Page load event handled.
5.Page postback event handled.
6.Button click event handled.
7.Page prerender event handled.
My questions are:
Why some events like page load are raised twice?
People usually said page_load event happens before button click event. I don't quite get it, do people mean page_load event is handled before button click event? if yes then I understand, so is it just something like when we click a submit button, we actually fire 2 events, one for button click event, and one for page load event and page load event is handled first?
Can anyone put these stages in a simple way to explain how each stage steps in? like when a user clicks a button, what's happening behind the scene