Search code examples
asp.netlifecycle

Identify current step in page life cycle


Is there a way to see where exactly a given piece of code is executing with regards to the current Page life cycle? Closest thing I can think of is to look at the call stack in the debugger and attempt to determine from there. But I thought there might be some standard way?


Solution

  • You can use Trace. If you want to know from code, use StackTrace.