how to make discisions in a wizardstep

A

Andy B

Hi. I have a Wizard on a page. It is called NewsWizard. I have 7 steps in
the wizard. In the first wizard step (index 0), I have a radioButtonList
called NewsChoices. In the NewsChoices list I have the items: Edit news
(value Edit), Add news (value Add) and Delete news(value Delete). I am
trying to base the wizard step to jump to next on the NewsChoices value.
Here is the code I have for the next button at the start of the wizard:

protected void NewsWizard_FinishButtonClick(object sender,
WizardNavigationEventArgs e) {

if(NewsWizard.ActiveStepIndex == 0) {

if(NewsChoices.SelectedValue=="Add")

NewsWizard.ActiveStepIndex = 1;

if(NewsChoices.SelectedValue=="Edit")

NewsWizard.ActiveStepIndex = 5;

if(NewsChoices.SelectedValue=="Delete")

NewsWizard.ActiveStepIndex = 3;

}

}



This doesn't work at all, any ideas how to fix it?
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top