Advancing wizard from code-behind in ASP.NET
<p>I have a wizard on my page, and it has a "Next" button. I would like to "click" that button from code-behind when clicking another button on the page.</p>

<p>More specifically:
There is a button on my page that has two functions: after clicking it, in the postback, it either sets up the code required to reload the page and display a popup, or it advances the wizard if it deems the popup unnecessary. In case the popup is shown, it contains a button to advance the wizard.</p>

<p>Some code snippets:</p>

<p>Wizard init:</p>

<pre><code>&lt;asp:Wizard ID="RegistrationWizard" meta:resourcekey="RegistrationWizard"
    runat="server" OnFinishButtonClick="RegistrationWizard_FinishButtonClick" 
    OnActiveStepChanged="RegistrationWizard_ActiveStepChanged" 
    OnNextButtonClick="RegistrationWizard_NextButtonClick"&gt;
</code></pre>

<p>Button to show popup or advance:</p>

<pre><code>&lt;asp:Button ID="btnModulesNextPostBack" runat="server" CssClass="submit rounded"
    meta:resourcekey="btnNext" onclick="btnModulesNextPostBack_Click" /&gt;
</code></pre>

<p>Button to advance wizard:</p>

<pre><code>&lt;asp:Button ID="btnModulesStepNext" runat="server" CssClass="submit rounded" 
    meta:resourcekey="btnNext" CommandName="MoveNext" /&gt;
</code></pre>

<p>Code-behind of the btnModulesNextPostBack_Click method:</p>

<pre><code>protected void btnModulesNextPostBack_Click(object sender, EventArgs e)
{
    showPopup = false; // if set to true: will open popup in postback
    // ... code to determine if popup should be shown
    if (!showNewsletterPopup)
    {
        // TODO! trigger "move to next step in wizard"
    }
}
</code></pre>

<p>I don't know what to place in the TODO line, because I want to be sure that all other methods related to the wizard get called in the same order as usual too (RegistrationWizard_NextButtonClick and RegistrationWizard_ActiveStepChanged and maybe others the wizard code calls internally).</p>

<p>How can I do this? (.net version is 4.0)</p>
