ozkank
ozkank

Reputation: 1462

How to hide asp.net wizard control step name?

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?

enter image description here

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

Upvotes: 2

Views: 3681

Answers (2)

Kapil Khandelwal
Kapil Khandelwal

Reputation: 16144

Try setting:

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

Also, DisplaySideBar="false"

 <asp:Wizard DisplaySideBar="false"></asp:Wizard>

Upvotes: 2

sphair
sphair

Reputation: 1670

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>

Upvotes: 4

Related Questions