R
rdlauer
I'm in a catch-22 with a wizard control and wonder if anyone has any
ideas:
It appears as though every time you load a wizard control step, you are
doing a postback, which makes sense. That causes problems, though, when
you have actions in a step that should only be executed if IsPostBack =
False (which will never be true on any step greater than #1). Example:
I have a two (or more) step process that I'm using a wizard control
for. I wrote a method called "OnNext" that is called every time I hit
the "next" button in my control.
The 1st wizard step is just a textbox (txtStep1). The 2nd wizard step
is also just a textbox (txtStep2).
On WizardStep2.Load, I set txtStep2.Text = txtStep1.Text. However, this
should ONLY happen if IsPostBack = False, otherwise any user entry into
txtStep2.Text will be overwritten by txtStep1 (in case of a validator
going off or whatever) again.
The catch is that WizardStep2.Load is, in itself, a postback, since
we're really doing a postback from Step1.
I feel like I'm missing some really obvious wizard control option here,
but I just can't figure this out. Thanks in advance for any help.
ideas:
It appears as though every time you load a wizard control step, you are
doing a postback, which makes sense. That causes problems, though, when
you have actions in a step that should only be executed if IsPostBack =
False (which will never be true on any step greater than #1). Example:
I have a two (or more) step process that I'm using a wizard control
for. I wrote a method called "OnNext" that is called every time I hit
the "next" button in my control.
The 1st wizard step is just a textbox (txtStep1). The 2nd wizard step
is also just a textbox (txtStep2).
On WizardStep2.Load, I set txtStep2.Text = txtStep1.Text. However, this
should ONLY happen if IsPostBack = False, otherwise any user entry into
txtStep2.Text will be overwritten by txtStep1 (in case of a validator
going off or whatever) again.
The catch is that WizardStep2.Load is, in itself, a postback, since
we're really doing a postback from Step1.
I feel like I'm missing some really obvious wizard control option here,
but I just can't figure this out. Thanks in advance for any help.