Hi,
I have the wizard control. O n each Wizard step I have put some code next I converted that wizard to templates like the below:
</WizardSteps>
<StepNavigationTemplate>
<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
Text="< Back" />
<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next Step >" />
</StepNavigationTemplate>
<StartNavigationTemplate>
<asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="Next Step>" />
</StartNavigationTemplate>
<FinishNavigationTemplate>
<asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
Text="< Back" />
<asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" Text="Finish" />
</FinishNavigationTemplate>
</asp:Wizard>
Now I want to write separate code for each button click. For example I want to handle the StepPreviousButton click event. Where to handle that event.
In Wizard_ActiveStepChanged(..){
Here How we check which button is clicked.
Thanks
I have the wizard control. O n each Wizard step I have put some code next I converted that wizard to templates like the below:
</WizardSteps>
<StepNavigationTemplate>
<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
Text="< Back" />
<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next Step >" />
</StepNavigationTemplate>
<StartNavigationTemplate>
<asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="Next Step>" />
</StartNavigationTemplate>
<FinishNavigationTemplate>
<asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
Text="< Back" />
<asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" Text="Finish" />
</FinishNavigationTemplate>
</asp:Wizard>
Now I want to write separate code for each button click. For example I want to handle the StepPreviousButton click event. Where to handle that event.
In Wizard_ActiveStepChanged(..){
Here How we check which button is clicked.
Thanks