I have a Wizard control in an ASP.NET page. I am trying to provide links back to the individual WizardSteps. I can't find any information about doing it.
Here is some code to help visualize my problem
<asp:Wizard runat="server" ID="Wizard">
<HeaderTemplate>
<ul>
<li><a href="<%=LinkToTheFirstStep %>">Step 1</a></li>
<li><a href="<%=LinkToTheSecondStep %>">Step 2</a></li>
</ul>
</HeaderTemplate>
<WizardSteps>
<WizardSteps runat="server" ID="WizardStepPersonal">
</WizardSteps>
<WizardSteps runat="server" ID="WizardStepTravel">
</WizardSteps>
</WizardSteps>
</asp:Wizard>
You could just have a query string variable, like ?step=1 and check against that on page load, then set your wizard like:
Of course with a little more error checking.
Edit: Sorry, the ActiveStepIndex accepts and int and I initially was trying to cast a string to to an int.