private void loadContent(ListingCreatorStep currentStep) { StepPlaceHolder.Controls.Clear(); var controlToLoad = new UserControl().LoadControl(IOHelper.ResolveUrl(currentStep.UserControl)); //if (currentStep.Alias == "details") // ((Details)controlToLoad).IsDeliVendor = false; StepPlaceHolder.Controls.Add(controlToLoad); Step.Value = currentStep.Alias; _currentStep = currentStep.Alias; }
private void loadContent(ListingCreatorStep currentStep) { StepPlaceHolder.Controls.Clear(); var controlToLoad = new System.Web.UI.UserControl().LoadControl(IOHelper.ResolveUrl(currentStep.UserControl)); if (currentStep.Alias == "details") ((uProject.usercontrols.Deli.Package.Steps.Details)controlToLoad).IsDeliVendor = _vendor.Member.IsDeliVendor; StepPlaceHolder.Controls.Add(controlToLoad); Step.Value = currentStep.Alias; _currentStep = currentStep.Alias; }
public void GoToPreviousStep(string currentStep, int projectId) { ListingCreatorStep _s = ListingSteps().GotoPreviousStep(currentStep); Response.Redirect("edit?editorStep=" + _s.Alias + "&id=" + projectId); }