B
Bill Cohagan
While trying to debug some page logic I discovered that the
ActiveStepChanged Event seems to fire out of order when a page is first
loaded; i.e., a non postback page load. This is an event on a Wizard
control. My wizard is set up with the ActiveStepIndex initialized to 0 (on
the control). When my page is first loaded the ActiveStepChanged event fires
*before* the OnLoad event (which does fire subsequently). I (and my code!)
assumed that the OnLoad would always preceed any event handlers being
called -- whether a postback or not.
On subsequent postbacks (like when the user clicks the wizard's Next button)
the OnLoad event fires before the ActiveStepChangedEvent as expected. I'm
basing my assumption about OnLoad "always" firing first on the docs, e.g.,
http://msdn2.microsoft.com/en-us/library/ms178472.aspx
So, am I missing something in the docs or is there some other explanation
for this incosistency?
TIA,
Bill
ActiveStepChanged Event seems to fire out of order when a page is first
loaded; i.e., a non postback page load. This is an event on a Wizard
control. My wizard is set up with the ActiveStepIndex initialized to 0 (on
the control). When my page is first loaded the ActiveStepChanged event fires
*before* the OnLoad event (which does fire subsequently). I (and my code!)
assumed that the OnLoad would always preceed any event handlers being
called -- whether a postback or not.
On subsequent postbacks (like when the user clicks the wizard's Next button)
the OnLoad event fires before the ActiveStepChangedEvent as expected. I'm
basing my assumption about OnLoad "always" firing first on the docs, e.g.,
http://msdn2.microsoft.com/en-us/library/ms178472.aspx
So, am I missing something in the docs or is there some other explanation
for this incosistency?
TIA,
Bill