向导控件不起作用
我是 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>
I'm new to the ASP.NET's Wizard control and couldn't make it work. I guess there is a minor issue in the code that prevent the wizard from displaying. Here is the code snippet that I put inside a server form.
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有多个错误,例如 WizardSteps、缺少 runat="server" 以及其他一些错误,
请尝试此操作
You have multiple errors like WizardSteps, missing runat="server" and some others
try this