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?
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?