为什么取消按钮没有出现在asp:Wizard控件中?

时间:2009-01-23 20:39:27

标签: asp.net

这是我在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>

1 个答案:

答案 0 :(得分:2)

您需要将“DisplayCancelButton”属性设置为“True”。