最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

c# - How to hide asp.net wizard control step name? - Stack Overflow

matteradmin8PV0评论

I want to hide step name in left bar. Don't want to visible 'Wizardstep1','Wizardstep2' and 'Wizardstep3'. Can somebody show me how to do this?

     <asp:Wizard runat="server" ID="MyWizard" OnNextButtonClick="MyWizard_NextButtonClick"
                        Width="640px" Height="200px" OnFinishButtonClick="MyWizard_FinishButtonClick">
                        <WizardSteps>
                        <asp:WizardStep ID="Wizardstep1" runat="server" StepType="Start">
                        </asp:WizardStep>
                        <asp:WizardStep ID="Wizardstep2" runat="server" StepType="Step">
                        </asp:WizardStep>
                        <asp:WizardStep ID="Wizardstep3" runat="server" StepType="Finish">
                        </asp:WizardStep>
     </asp:Wizard>

I want to hide step name in left bar. Don't want to visible 'Wizardstep1','Wizardstep2' and 'Wizardstep3'. Can somebody show me how to do this?

     <asp:Wizard runat="server" ID="MyWizard" OnNextButtonClick="MyWizard_NextButtonClick"
                        Width="640px" Height="200px" OnFinishButtonClick="MyWizard_FinishButtonClick">
                        <WizardSteps>
                        <asp:WizardStep ID="Wizardstep1" runat="server" StepType="Start">
                        </asp:WizardStep>
                        <asp:WizardStep ID="Wizardstep2" runat="server" StepType="Step">
                        </asp:WizardStep>
                        <asp:WizardStep ID="Wizardstep3" runat="server" StepType="Finish">
                        </asp:WizardStep>
     </asp:Wizard>
Share Improve this question asked Nov 21, 2012 at 9:32 ozkankozkank 1,4627 gold badges32 silver badges52 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

There is a property DisplaySideBar that you can set to false.

<asp:Wizard runat="server" DisplaySideBar="false" ID="MyWizard" OnNextButtonClick="MyWizard_NextButtonClick" Width="640px" Height="200px" OnFinishButtonClick="MyWizard_FinishButtonClick">
     ....
</asp:Wizard>

Also, it is possible to set a custom template for it. Maybe you can set it to empty if above approach didn't work:

<asp:Wizard runat="server" ID="MyWizard" OnNextButtonClick="MyWizard_NextButtonClick" Width="640px" Height="200px" OnFinishButtonClick="MyWizard_FinishButtonClick">
     <sidebartemplate>
     </sidebartemplate>
     ....
</asp:Wizard>

Try setting:

 <asp:WizardStep Title=""></asp:WizardStep>

Also, DisplaySideBar="false"

 <asp:Wizard DisplaySideBar="false"></asp:Wizard>
Post a comment

comment list (0)

  1. No comments so far