How to invoke Wizard.MoveTo() on .aspx page from .ascx user control?
Posted on 2008-10-24
My main page is store.aspx, which contains an <asp:Wizard> control.
Each of the WizardSteps are separate ASCX controls:
<asp:WizardStep ID="AccessoriesWizardStep" runat="server" StepType="Step" Title="Store">
<storewizard:StoreProducts ID="StoreProducts" runat="server" />
<asp:WizardStep ID="PaymentDetailsWizardStep" runat="server" StepType="Step" Title="Payment Information">
<storewizard:StorePayment ID="StorePayment" runat="server" />
Both of these controls then contain a reference to a common "Shopping Cart" control, which shows products added to the cart, price, and a Checkout button. Everything is working great, except for the Checkout button.
Here is the problem: I am not able to get the Checkout button to fire off the OnNextButtonClick event contained in the parent Store.aspx page. This OnNextButtonClick event references the .MoveTo method.
How do I accomplish this task?