Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp:Wizard hide step

Status
Not open for further replies.

coospaa

Programmer
May 1, 2003
33
SG
I have a asp:wizard control (3 steps) which will be used for 2 different web app. In App1, I want to show step 1 and step 3 (hide step 2); In App2, I want to show all the steps.

Now I wrote the code in wizard_load event to control the show/hide of steps. But the problem is that when I hide step 2 in App1, when i navigate from step 3 back to step 1, and then back to step 3, the previous user input in step 3 is lost!!! (this happens only when I hide step 2.)

Does anyone have any idea how to solve it? Or any workaround for this situation?

I just need to load different steps for different app while maintaining the state.

Thanks in advance.
 
Hi, i found the solution. Just put the WizardSteps.Remove(WizardStepXXX) in Page_Init will do the job.

Thanks all for reading.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top