wizard control

N

Nick Chan

Hi guys
i have the following code for wizard
Start,Prev,Next will run the methods that i assigned, using handles

Protected Sub [Next](ByVal o As Object, ByVal e As
WizardNavigationEventArgs) Handles W.NextButtonClick
--code
End Sub
Protected Sub Prev(ByVal o As Object, ByVal e As
WizardNavigationEventArgs) Handles W.PreviousButtonClick
--code
End Sub


but clicking "Finish" does not call W.FinishButtonClick, but it does
go to page_load. anyone knows whats wrong with my code?


Protected Sub Finish(ByVal o As Object, ByVal e As
WizardNavigationEventArgs) Handles W.FinishButtonClick
--code wont come here!
End Sub


the aspx --------------------


<asp:Wizard ID="W" runat="server" ActiveStepIndex="0" >


<StartNavigationTemplate>
<asp:Button id="StartNextButton" CommandName="MoveNext"
Text="Next" Runat="Server"/>
</StartNavigationTemplate>


<StepNavigationTemplate>
<asp:Button id="StepPreviousButton" CommandName="MovePrevious"
Text="Prev" Width="60" Runat="Server"/>
<asp:Button id="StepNextButton" CommandName="MoveNext"
Text="Next"
Runat="Server"/>
</StepNavigationTemplate>


<FinishNavigationTemplate>
<asp:Button id="FinishPreviousButton" CommandName="MovePrevious"
Text="Prev" Width="60" Runat="Server"/>
<asp:Button id="FinishButton" CommandName="MoveFinish"
Text="Finish" Width="60" Runat="Server"/>
</FinishNavigationTemplate>
<WizardSteps>
<asp:WizardStep runat="server" StepType="Start">
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Step">
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Step">
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Finish">
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Complete">
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top