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>
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>