0

我是 ASP.NET 向导控件的新手,无法使其工作。我猜代码中有一个小问题会阻止向导显示。这是我放在服务器表单中的代码片段。

<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>
4

1 回答 1

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>

于 2010-05-19T20:54:14.510 回答