这是我在aspx页面上的asp:Wizard控件的代码片段,但是取消按钮没有显示。仅显示下一个和上一个按钮。有谁知道如何解决这个问题?
<asp:Wizard
runat="server"
OnFinishButtonClick="wizCreateUser_Finish"
OnNextButtonClick="wizCreateUser_StepChange"
HeaderText="SpecEx Application Form"
Font-Names="Arial"
BackColor="#336699"
ForeColor="White"
ID="wizCreateUser"
Font-Bold="False"
Style="border: outset 1px black;"
Height="320px"
Width="861px"
ActiveStepIndex="0"
DisplaySideBar="False"
StartNextButtonImageUrl="~/images/next-btn.PNG"
StepNextButtonImageUrl="~/images/next-btn.PNG"
StepNextButtonType="Image"
StartNextButtonText=""
StartNextButtonType="Image"
StepNextButtonText=""
FinishCompleteButtonImageUrl="~/images/finish-btn.png"
FinishCompleteButtonType="Image"
FinishPreviousButtonImageUrl="~/images/previous-btn.png"
FinishPreviousButtonText=""
FinishPreviousButtonType="Image"
StepPreviousButtonImageUrl="~/images/previous-btn.png"
StepPreviousButtonText="" StepPreviousButtonType="Image"
CancelButtonImageUrl="~/images/cancel-btn.png"
CancelButtonText=""
CancelButtonType="Image">
</asp:Wizard>
答案 0 :(得分:2)
您需要将“DisplayCancelButton”属性设置为“True”。