2013-07-31 2 views
1

마법사 컨트롤의 '최종'단계에서 뒤로 및 확인 버튼을 비활성화하려면 어떻게합니까?마법사 컨트롤 비활성화 버튼

<asp:Wizard ID="Wizard" runat="server" DisplayCancelButton="True" 
StepPreviousButtonText="Back" FinishPreviousButtonText="Back" 
FinishCompleteButtonText="Confirm" > 

<WizardSteps> 
..... 
<asp:WizardStep ID="ConfirmStep" runat="server" Title="Confirm Request" 
StepType="Finish" > 
<asp:WizardStep> 
.... 
</WizardSteps> 
</asp:Wizard> 



Protected Sub Wizard_FinishButtonClick(ByVal sender As Object, ByVal e As 
System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard.FinishButtonClick 
....... 

'I want to disable the Confirm and Back button here after displaying the error message. 
e.Cancel = True 

End Sub 

감사합니다.

+0

당신이 봤어 숨기려는? http://stackoverflow.com/questions/2971222/hide-button-on-asp-net-wizard – Nexus23

답변

0

마법사를 선택하고 StartNavigationTempltae로 변환하십시오. 다음 aspx 페이지에 떨어져

<StartNavigationTemplate> 
<asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" 
Text="Next" Visible="false" /> 
</StartNavigationTemplate> 

세트 가시성 시작하거나 어떤 버튼을 당신은