E
Ezra Epstein
I've created a Trace user control to find out what's going on in the
request/response process. On a non-post back even it seems pretty
straight-forward:
Constructor
AddParsedSubObject()
AddedControl() (TraceLog)
OnInit()
TrackViewState()
OnLoad()
Page_Load()
EnsureChildControls()
CreateChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
BUT, on post-back here's the call list:
AddParsedSubObject()
AddedControl() (TraceLog)
OnInit()
TrackViewState()
OnLoad()
Page_Load()
EnsureChildControls()
CreateChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
OnLoad()
Page_Load()
EnsureChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
The methods OnLoad() through RenderChildren() are called twice! Note that
since the Child controls have been created, EnsureChildControls() does not
invoke CreateChildControls() the second time.
Anyone able to explain this? Is it a bug?
Ezra E.
request/response process. On a non-post back even it seems pretty
straight-forward:
Constructor
AddParsedSubObject()
AddedControl() (TraceLog)
OnInit()
TrackViewState()
OnLoad()
Page_Load()
EnsureChildControls()
CreateChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
BUT, on post-back here's the call list:
AddParsedSubObject()
AddedControl() (TraceLog)
OnInit()
TrackViewState()
OnLoad()
Page_Load()
EnsureChildControls()
CreateChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
OnLoad()
Page_Load()
EnsureChildControls()
OnPreRender()
SaveViewState()
Render()
RenderChildren()
The methods OnLoad() through RenderChildren() are called twice! Note that
since the Child controls have been created, EnsureChildControls() does not
invoke CreateChildControls() the second time.
Anyone able to explain this? Is it a bug?
Ezra E.