我是ASP.NET的Wizard控件的新手,无法使其工作。我想代码中存在一个小问题,阻止向导显示。这是我放在服务器表单中的代码片段。
<asp:Wizard id="Wizard1" runat="server" >
<asp:WizardSteps>
<asp:WizardStep runat="server" id="firstStep" Title="First step">
What is your name<asp:TextBox id="txtName" />
</asp:WizardStep>
<asp:WizardStep runat="server" AllowReturn="false" id="lastStep" Title="Last step">
That's all for today. Good bye.
</asp:WizardStep>
</asp:WizardSteps>
</asp:Wizard>
答案 0 :(得分:0)
您有多个错误,例如WizardSteps,缺少runat =“server”和其他一些错误
试试这个
<asp:Wizard ID="Wizard2" runat="server">
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
What is your name<asp:TextBox id="TextBox1" runat="server" />
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
That's all for today. Good bye.
</asp:WizardStep>
</WizardSteps>