HighTechTalks DotNet Forums  

how to make discisions in a wizardstep

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss how to make discisions in a wizardstep in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Andy B
 
Posts: n/a

Default how to make discisions in a wizardstep - 12-17-2007 , 05:12 PM






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?







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.