private CreateFlyerWizardControlBase GetWizardStepToRender() { CreateFlyerWizardControlBase result = renderWizardStep; if (result == null) { if (Request.IsGet()) { result = currentWizardStep; } else if (StepTransitions.ContainsKey(nextWizardStepName)) { result = GetWizardStepControl(nextWizardStepName, StepTransitions[nextWizardStepName]); } } return(result); }
private void SetWizardStep() { currentWizardStepName = GetCurrentWizardStepName(); nextWizardStepName = StepTransitions[currentWizardStepName]; if (StepTransitions.ContainsKey(currentWizardStepName)) { currentWizardStep = GetWizardStepControl(currentWizardStepName, nextWizardStepName); renderWizardStep = GetWizardStepToRender(); } var contentPlaceHolder = Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder; contentPlaceHolder.Controls.Add(renderWizardStep); var hfStep = new HtmlInputHidden { ID = "Step", Value = renderWizardStep.Step }; contentPlaceHolder.Controls.Add(hfStep); }