Wizard Control ?

  • Thread starter Mr. Murad Jamal
  • Start date
M

Mr. Murad Jamal

How to remove or hide the Previous button in Wizard Control ?
thanx alot in advance !
 
K

Ken Cox [Microsoft MVP]

You need to convert the steps into templates and then you have control over
the content. That way you can delete buttons.

<asp:wizard id="Wizard1" runat="server" activestepindex="1">
<startnavigationtemplate>
<asp:button id="StartNextButton" runat="server"
commandname="MoveNext" text="Next" />
</startnavigationtemplate>
<stepnavigationtemplate>
<asp:button id="StepPreviousButton" runat="server"
causesvalidation="False" commandname="MovePrevious" text="Previous" />
<asp:button id="StepNextButton" runat="server"
commandname="MoveNext" text="Next" />
</stepnavigationtemplate>
<wizardsteps>
<asp:wizardstep runat="server" title="Step 1">
</asp:wizardstep>
<asp:wizardstep runat="server" title="Step 2">
</asp:wizardstep>
</wizardsteps>
<finishnavigationtemplate>
<asp:button id="FinishPreviousButton" runat="server"
causesvalidation="False" commandname="MovePrevious" text="Previous" />
<asp:button id="FinishButton" runat="server"
commandname="MoveComplete" text="Finish" />
</finishnavigationtemplate>
</asp:wizard>

Is that what you meant?

Ken
Microsoft MVP [ASP.NET]
 
M

Mr. Murad Jamal

yes that's what i want ! thank you so much dude

Ken Cox said:
You need to convert the steps into templates and then you have control over
the content. That way you can delete buttons.

<asp:wizard id="Wizard1" runat="server" activestepindex="1">
<startnavigationtemplate>
<asp:button id="StartNextButton" runat="server"
commandname="MoveNext" text="Next" />
</startnavigationtemplate>
<stepnavigationtemplate>
<asp:button id="StepPreviousButton" runat="server"
causesvalidation="False" commandname="MovePrevious" text="Previous" />
<asp:button id="StepNextButton" runat="server"
commandname="MoveNext" text="Next" />
</stepnavigationtemplate>
<wizardsteps>
<asp:wizardstep runat="server" title="Step 1">
</asp:wizardstep>
<asp:wizardstep runat="server" title="Step 2">
</asp:wizardstep>
</wizardsteps>
<finishnavigationtemplate>
<asp:button id="FinishPreviousButton" runat="server"
causesvalidation="False" commandname="MovePrevious" text="Previous" />
<asp:button id="FinishButton" runat="server"
commandname="MoveComplete" text="Finish" />
</finishnavigationtemplate>
</asp:wizard>

Is that what you meant?

Ken
Microsoft MVP [ASP.NET]

Mr. Murad Jamal said:
How to remove or hide the Previous button in Wizard Control ?
thanx alot in advance !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top