Asp Wizard: skipping a wizard step programmatically (also known as click next button)

Short Solution:

Wizard.MoveTo(NameOfWizardStepControl);

The long story:

I needed to skip a wizard step if we could fill that field programatically (which was the more probably case). The first idea was trigger the NextButton.Click() method to trigger the click event. After doing some research I found that... there is no NextButton.Click() method! I read about solutions involving ajax, but I didn't want to use ajax since the whole flow of the existing wizard was in asp .net. Doing ajax would mean to either rewrite the wizard to have an all ajax form or creating some frankencode where some pieces were triggered by ajax and others wouldn't.

Then I tripped over this nice little method, Wizard.MoveTo(). Then argument is the name of a Wizard Step control. What this means is that when you have in your aspx code a step like this:

<asp:WizardStep ID="FlowerStep" runat="server" Title="Pick a flower!">
you go to it by writing

Wizard.MoveTo(FlowerStep);