Skip to content

Commit

Permalink
Issue dubeaud#232: Back button on Wizard step 1 fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
emfluenceindia committed Nov 25, 2016
1 parent afceb7f commit bfa52b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/BugNET_WAP/Administration/Projects/AddProject.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/// <summary>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bfa52b9

Please sign in to comment.