R
rdlauer
Two (hopefully) quick questions for you all:
1. Is there any way within a Wizard Step to programmatically determine
whether or not a postback has occurred? It appears as though, after the
first step, you are always posting back (which makes sense). However,
there are plenty of times when you would want to only execute code if
the Wizard Step is being loaded for the first time. I'm getting around
this by using some hidden fields, but there must be a better way.
2. Every time I load any step in my Wizard Control, the Load methods
for EVERY Wizard Step are being executed! Of course the content isn't
displayed for all of the steps, but all of the sql queries are being
run and I have to put conditionals everywhere to make sure nothing
bombs out (because the queries are expecting data from previous steps
etc). Again, something I'm missing, or is this by design? Why would all
of those Load methods be executed?
Thanks in advance for any help!
Rob
1. Is there any way within a Wizard Step to programmatically determine
whether or not a postback has occurred? It appears as though, after the
first step, you are always posting back (which makes sense). However,
there are plenty of times when you would want to only execute code if
the Wizard Step is being loaded for the first time. I'm getting around
this by using some hidden fields, but there must be a better way.
2. Every time I load any step in my Wizard Control, the Load methods
for EVERY Wizard Step are being executed! Of course the content isn't
displayed for all of the steps, but all of the sql queries are being
run and I have to put conditionals everywhere to make sure nothing
bombs out (because the queries are expecting data from previous steps
etc). Again, something I'm missing, or is this by design? Why would all
of those Load methods be executed?
Thanks in advance for any help!
Rob