Hello Dave,
How are you doing?
As for the Wizard control, it has the following templates inside the
control:
**StartNavigation
**StepNavigation
**FinishNavigation
And by default since we haven't explicitly define these templates, it will
use the built-in template, as below:
**StartNavigation -------- a "Next" navigation button
**StepNavigation --------- "Previous" and "Next" navigation button
**FinishNavigation --------- "Previous" and "Finish" navigation button
You can manually define these templaets to add any custom sub controls or
UI elements. e.g.
=========================================
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="2">
<WizardSteps>
<asp:WizardStep ID="Step1" runat="server" Title="Step 1">
<asp:Label ID="Label1" runat="server" Text="Step
1"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:WizardStep>
<asp:WizardStep ID="Step2" runat="server" Title="Step 2">
<asp:Label ID="Label2" runat="server" Text="Step
2"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</asp:WizardStep>
<asp:WizardStep ID="Step3" runat="server" Title="Step 3">
<asp:Label ID="Label3" runat="server" Text="Step
3"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:WizardStep>
</WizardSteps>
<StartNavigationTemplate>
<asp:Button ID="StartNextButton" runat="server"
CommandName="MoveNext" Text="Next" />
<!-- add custom elements here....-->
</StartNavigationTemplate>
<StepNavigationTemplate>
<asp:Button ID="StepPreviousButton" runat="server"
CausesValidation="False" CommandName="MovePrevious"
Text="Previous" />
<!-- add custom elements here....-->
<asp:Button ID="StepNextButton" runat="server"
CommandName="MoveNext" Text="Next" />
</StepNavigationTemplate>
<FinishNavigationTemplate>
<asp:Button ID="FinishPreviousButton" runat="server"
CausesValidation="False" CommandName="MovePrevious"
Text="Previous" />
<asp:Button ID="FinishButton" runat="server"
CommandName="MoveComplete" Text="Finish" />
<!-- add custom elements here....-->
</FinishNavigationTemplate>
</asp:Wizard>
========================================
BTW, in VS 2005 design-view, you can use the Wizard control's "Wizard
Tasks"(from action list ) to convert from default template to explicit
template.
Here are some reference about using ASP.NET Wizard control:
#Wizard Web Server Control (Visual Studio)
http://msdn2.microsoft.com/en-us/library/wsdd9x19.aspx
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.