和asp:Wizard一起玩,我真的很好奇该怎么做
当前向导的外观
<asp:Wizard ID="Wizard1" runat="server" DisplaySideBar="false" Width="100%">
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" Title="START" AllowReturn="false">
<div class="content">This is Step 1</div>
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2" runat="server" Title="SOMETHING" AllowReturn="false">
<div class="content">This is Step 2</div>
</asp:WizardStep>
<asp:WizardStep ID="WizardStep3" runat="server" Title="SOMETHING MORE" AllowReturn="false">
<div class="content">This is Step 3</div>
</asp:WizardStep>
<asp:WizardStep ID="WizardStep4" runat="server" Title="END" AllowReturn="false">
<div class="content">This is Step 4</div>
</asp:WizardStep>
</WizardSteps>
<NavigationStyle HorizontalAlign="Left" />
<HeaderTemplate>
<ul id="wizHeader">
<asp:Repeater ID="SideBarList" runat="server">
<ItemTemplate>
<li><a class="<%# GetClassForWizardStep(Container.DataItem) %>" title="<%#Eval("Name")%>"><%# Eval("Name")%></a></li>
</ItemTemplate>
</asp:Repeater>
</ul>
</HeaderTemplate>
<StepNavigationTemplate>
<asp:Label ID="lblStepCount" runat="server">Step <%# (Wizard1.ActiveStepIndex + 1).ToString %> of 4</asp:Label>
<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next" />
</StepNavigationTemplate>
</asp:Wizard>
我试图做的是在“下一步”按钮附近投放“步数”
由于暂时<StepNavigationTemplate>
,我希望在步骤2和3上看到此内容。因此,类似-“步骤2之4” [Next]
但是没有解决。 <%# (Wizard1.ActiveStepIndex + 1).ToString %>
被完全忽略。
是否有某种标准的方法可以做到这一点? (这绝对不可能以前没有做过)