diff --git a/src/BugNET_WAP/Administration/Projects/AddProject.aspx.cs b/src/BugNET_WAP/Administration/Projects/AddProject.aspx.cs index d7907063..cbdf347b 100644 --- a/src/BugNET_WAP/Administration/Projects/AddProject.aspx.cs +++ b/src/BugNET_WAP/Administration/Projects/AddProject.aspx.cs @@ -41,6 +41,9 @@ private void LoadWizardStep() plhWizardStep.Controls.Add(_ctlWizardStep); ((IEditProjectControl)_ctlWizardStep).Initialize(); lblStepNumber.Text = String.Format("{2} {0} {3} {1}", StepIndex + 1, _wizardSteps.Count, GetLocalResourceObject("Step"), GetLocalResourceObject("Of")); + + //Hide BACK button on StepIndex = 0 (Wizard step 1 of 10) + btnBack.Visible = StepIndex != 0; } /// @@ -119,7 +122,9 @@ protected void btnNext_Click(object sender, EventArgs e) if (((IEditProjectControl)_ctlWizardStep).Update()) { ProjectId = ((IEditProjectControl)_ctlWizardStep).ProjectId; + StepIndex++; + if (StepIndex == _wizardSteps.Count) Response.Redirect("ProjectList.aspx"); else