Wizard.FinishNavigationTemplate 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Finish 단계의 탐색 영역을 표시하는 데 사용되는 템플릿을 가져오거나 설정합니다.
public:
virtual property System::Web::UI::ITemplate ^ FinishNavigationTemplate { System::Web::UI::ITemplate ^ get(); void set(System::Web::UI::ITemplate ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.Wizard))]
public virtual System.Web.UI.ITemplate FinishNavigationTemplate { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
[<System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.Wizard))>]
member this.FinishNavigationTemplate : System.Web.UI.ITemplate with get, set
Public Overridable Property FinishNavigationTemplate As ITemplate
속성 값
ITemplate에서 Finish에 대한 탐색 영역의 내용을 정의하는 Wizard입니다. 기본값은 null
입니다.
- 특성
예제
다음 코드 예제에서는 컨트롤에 대 한 단계 Wizard 의 FinishNavigationTemplate Finish 탐색 영역에 대 한 사용자 지정 템플릿을 만드는 속성을 사용 하는 방법을 보여 줍니다.
중요
이 예제에는 사용자 입력을 허용하는 텍스트 상자가 있으므로 보안상 위험할 수 있습니다. 기본적으로 ASP.NET 웹 페이지는 사용자 입력 내용에 스크립트 또는 HTML 요소가 포함되어 있지 않은지 확인합니다. 자세한 내용은 Script Exploits Overview를 참조하세요.
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
void OnFinishButtonClick(object sender, EventArgs e)
{
// Insert code here that determines if an email address was
// entered in emailTextBox. Then send an confirmation email if it was.
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1"
title="FinishNavigationTemplate Example"
runat="server">
<asp:Wizard ID="Wizard1"
Runat="server"
ActiveStepIndex="0"
OnFinishButtonClick="OnFinishButtonClick">
<WizardSteps>
<asp:WizardStep Runat="server"
Title="Step 1">
<!-- Put UI elements for Step 1 here. -->
This is step one.
</asp:WizardStep>
<asp:WizardStep Runat="server"
Title="Step 2">
<!-- Put UI elements for Step 2 here. -->
This is step two.
</asp:WizardStep>
<asp:WizardStep Runat="server"
StepType="Complete"
Title="Complete">
The Wizard has been completed.
</asp:WizardStep>
</WizardSteps>
<FinishNavigationTemplate>
Please enter your email address if you would like a confirmation email:
<asp:TextBox ID="emailTextBox"
Runat="server">
</asp:TextBox>
<br />
<asp:Button CommandName="MovePrevious"
Runat="server"
Text="Previous" />
<asp:Button CommandName="MoveComplete"
Runat="server"
Text="Finish" />
</FinishNavigationTemplate>
<HeaderTemplate>
<b>FinishNavigationTemplate Example</b>
</HeaderTemplate>
</asp:Wizard>
</form>
</body>
</html>
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Sub OnFinishButtonClick(ByVal sender As Object, ByVal e As WizardNavigationEventArgs)
' Insert code here that determines if an email address was
' entered in emailTextBox. Then send an confirmation email if it was.
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1"
title="FinishNavigationTemplate Example"
runat="server">
<asp:Wizard ID="Wizard1"
Runat="server"
ActiveStepIndex="0"
OnFinishButtonClick="OnFinishButtonClick">
<WizardSteps>
<asp:WizardStep Runat="server"
Title="Step 1">
<!-- Put UI elements for Step 1 here. -->
This is step one.
</asp:WizardStep>
<asp:WizardStep Runat="server"
Title="Step 2">
<!-- Put UI elements for Step 2 here. -->
This is step two.
</asp:WizardStep>
<asp:WizardStep Runat="server"
StepType="Complete"
Title="Complete">
The Wizard has been completed.
</asp:WizardStep>
</WizardSteps>
<FinishNavigationTemplate>
Please enter your email address if you would like a confirmation email:
<asp:TextBox ID="emailTextBox"
Runat="server">
</asp:TextBox>
<br />
<asp:Button CommandName="MovePrevious"
Runat="server"
Text="Previous" />
<asp:Button CommandName="MoveComplete"
Runat="server"
Text="Finish" />
</FinishNavigationTemplate>
<HeaderTemplate>
<b>FinishNavigationTemplate Example</b>
</HeaderTemplate>
</asp:Wizard>
</form>
</body>
</html>
설명
컨트롤의 FinishNavigationTemplate 단계에서 Wizard 탐색 영역에 Finish 대해 표시되는 사용자 지정 콘텐츠를 지정하려면 이 속성을 사용합니다. 단계에서 탐색 영역이 렌더링 Finish 되는 방법을 지정하는 템플릿을 만들어 콘텐츠를 정의합니다.
템플릿에 대한 사용자 지정 콘텐츠는 개체 내에 FinishNavigationTemplate 포함됩니다. 디자인 보기에서 템플릿 편집 모드를 사용하거나 태그를 사용하여 개체 인라인 FinishNavigationTemplate
을 정의하여 FinishNavigationTemplate 개체에 사용자 지정 콘텐츠를 FinishNavigationTemplate 추가할 수 있습니다. 콘텐츠는 일반 텍스트 만큼 간단 하거나 복잡 (다른 컨트롤 템플릿에 포함, 예를 들어) 수 있습니다.
참고
속성에 FinishNavigationTemplate 포함된 개체는 FinishNavigationTemplate 두 개의 IButtonControl 컨트롤을 포함해야 합니다. 하나는 해당 CommandName 속성이 "MoveComplete"로 설정된 컨트롤이고 다른 CommandName 하나는 해당 속성이 "MovePrevious"로 설정되어 있어야 탐색 기능을 사용할 수 있습니다.
프로그래밍 방식으로 템플릿에 정의 된 컨트롤에 액세스 하려면 개체의 Controls Wizard 컬렉션을 사용 합니다. 사용할 수도 있습니다는 FindControl 메서드를 Wizard 개체를 컨트롤에 컨트롤을 찾을 ID 지정 된 속성입니다.