Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Understanding Page and WebControl lifecycle events

Status
Not open for further replies.

afroblanca

Programmer
Jul 15, 2005
67
US
Hello all,

I'm having a very difficult time finding good articles on the page lifecycle and control lifecycle. It's really easy to find articles that cover *only* the page lifecycle, and it's also really easy to find articles that cover *only* the control lifecycle. However, what I need is an article that covers both, and lists the order in which all of the events happen for both lifecycles. For example, something like this would be extremely helpful :

1) Controls' OnInit events fire
2) Page's OnInit event fires
3) Page's OnLoad event fires
4) Controls' OnInit events fire
..........
20) Page's OnDispose event fires

I don't know why I'm having such a tough time finding an article like this. I'd think others would find it highly valuable as well.
 
Thanks for your help. I wound up doing it on my own. Here's what I got :

CONTROL : protected override void OnInit(EventArgs e)
PAGE : protected override void OnInit(EventArgs e)
PAGE : protected override void OnLoad(EventArgs e)
CONTROL : protected override void OnLoad(EventArgs e)
PAGE : protected override void OnPreRender(EventArgs e)
CONTROL : protected override void OnPreRender(EventArgs e)
PAGE : protected override object SaveViewState()
CONTROL : protected override object SaveViewState()
CONTROL : protected override void Render(HtmlTextWriter writer)
PAGE : protected override void Render(HtmlTextWriter writer)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top