473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to make discisions in a wizardstep

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?


Dec 17 '07 #1
0 903

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
0
by: Michel Couche | last post by:
Hello, I would like to programmatically set the visibility of a selectedWizardStep after clicking on a button contained in an other one. I found the following in an article from D. Esposito...
10
by: Johs | last post by:
I have a source file called project.c. In the same folder I have a Makefile containing: CC=gcc CFLAGS=-g project: project.c $(CC) $(CFLAGS) project.c -o project
0
by: =?Utf-8?B?WFNMZXI=?= | last post by:
I am working with the Wizard class for the first time, it seems like an easy way to setup a sequential series of steps. Current I have a render method for a server control I am writing like this:...
3
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, How can I move a wizardstep dynamacally form one position to another. eg: change the position of step 1 to be step 4. thanks. -- Regards,
0
by: Durango2008 | last post by:
Hello I am currently creating a form that uses WizardStep to go from page to page. I do want to get the data from the wizardstep that is displayed but I cannot figure out how to check which...
0
by: Durango2008 | last post by:
Hello I am currently creating a form that uses WizardStep to go from page to page. I do want to get the data from the wizardstep that is displayed but I cannot figure out how to check which...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.