Wizard Control IsPostBack and Method Issues

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
 
R

rdlauer

Regarding #2 below, in case anyone else was as confused as I was (am):

Don't use the Load event for your steps, use the Activate event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top