I am working with the Wizard class for the first time, it seems like an easy
way to setup a sequential series of steps.
Current I have a render method for a server control I am writing like this:
protected override void Render(HtmlTextWriter output)
{
this.EnsureChildControls();
_stepwizard = new Wizard();
WizardStep firstStep = new WizardStep();
firstStep.ID = "1) Select A List";
_stepwizard.WizardSteps.Add(firstStep);
Controls.Add(_stepwizard);
}
This works fine, I get my first step on the screen which is exciting. It
appears that the only way I can append things within the wizard so that they
appear as steps is through _stepwizard.Controls.Add, which is fine, but what
if you want to put the return of a whole method, or a call to a large string
in it? For example, is it possible to put this as the output of the step?
private void testOutput(HtmlTextWriter output)
{
output.Write("foo!")
}
Because I can normally parse it out in the render method like this:
protected override void RenderWebPart(HtmlTextWriter output)
{
this.testOutput(output);
}
I guess what it comes down to, is it possible to use anything other than
controls delcared within the Wizard Steps as output for the individual wizard
screens.
Thanks for the help!