D
Davie
I've got a slight problem with the ASP.NET wizard. The wizard is designed
to build an array of items. The first WizardStep asks how many items there
are. I then have another WizardStep which is used to create an item. I
wish to repeat this step as many times as required, depending on how many
items i have.
Step 1. Determine how many items
Step 2. Build Item * repeated until all the number of items have been
built.
This step adds items to an array.
Step 3. Complete
The problem is, when I wish to repeat the step. It doesn't seem to work!!
If the current item, is less than the total number of items, then I still
have more items to add.
void Wizard1_NextButtonClick(object sender,
System.Web.UI.WebControls.WizardNavigationEventArgs e)
{
if (Wizard1.ActiveStepIndex == 1)
{
if (currentitem<totalitems)
{
Wizard1.ActiveStepIndex = 1;
} else {
Wizard1.ActiveStepIndex = 2;
}
}
I've also tried this.Wizard1.MoveTo(this.Step2); instead of changing the
activestepindex.
Please could someone advise me ??
Many thanks.
to build an array of items. The first WizardStep asks how many items there
are. I then have another WizardStep which is used to create an item. I
wish to repeat this step as many times as required, depending on how many
items i have.
Step 1. Determine how many items
Step 2. Build Item * repeated until all the number of items have been
built.
This step adds items to an array.
Step 3. Complete
The problem is, when I wish to repeat the step. It doesn't seem to work!!
If the current item, is less than the total number of items, then I still
have more items to add.
void Wizard1_NextButtonClick(object sender,
System.Web.UI.WebControls.WizardNavigationEventArgs e)
{
if (Wizard1.ActiveStepIndex == 1)
{
if (currentitem<totalitems)
{
Wizard1.ActiveStepIndex = 1;
} else {
Wizard1.ActiveStepIndex = 2;
}
}
I've also tried this.Wizard1.MoveTo(this.Step2); instead of changing the
activestepindex.
Please could someone advise me ??
Many thanks.