Quickly check which part of the page lifecycle a control is in
Posted
by Khanzor
on Stack Overflow
See other posts from Stack Overflow
or by Khanzor
Published on 2009-12-28T23:02:09Z
Indexed on
2010/03/27
0:03 UTC
Read the original article
Hit count: 405
Is there any way to check what events have fired during the asp.net webforms page/control lifecycle?
I know that I can manually add handlers for each event, but that seems a bit ... inefficient.
Is there a visualiser, or a property that I can check that will tell me whether these events have fired?
EDIT The reason I want to know this is that I am overriding the ViewState property of a custom control, and the viewstate disappears at some point, and I'd like to know at which point in the page lifecycle it is being overriden.
© Stack Overflow or respective owner