Share via


PasswordRecovery.SuccessTemplate 속성

정의

PasswordRecovery 컨트롤의 성공 뷰를 표시하는 데 사용되는 템플릿을 가져오거나 설정합니다.

public:
 virtual property System::Web::UI::ITemplate ^ SuccessTemplate { 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.PasswordRecovery))]
public virtual System.Web.UI.ITemplate SuccessTemplate { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
[<System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.PasswordRecovery))>]
member this.SuccessTemplate : System.Web.UI.ITemplate with get, set
Public Overridable Property SuccessTemplate As ITemplate

속성 값

ITemplate

성공 뷰에 ITemplate 컨트롤을 표시하기 위한 템플릿이 들어 있는 PasswordRecovery입니다. 기본값은 null입니다.

특성

예제

다음 코드 예제에는 성공 뷰에 대 한 기본 템플릿을 보여 줍니다.

<%@ 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">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
    <asp:passwordrecovery id="PasswordRecovery1" runat="server">
        <successtemplate>
            <table border="0">
                <tr>
                    <td>Your password has been sent to you.</td>
                </tr>
            </table>
        </successtemplate>
    </asp:passwordrecovery>

</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">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
    <asp:passwordrecovery id="PasswordRecovery1" runat="server">
        <successtemplate>
            <table border="0">
                <tr>
                    <td>Your password has been sent to you.</td>
                </tr>
            </table>
        </successtemplate>
    </asp:passwordrecovery>

</form>
</body>
</html>

설명

SuccessTemplate 속성의 모양을 정의 하는 템플릿을 포함 합니다 PasswordRecovery 성공 뷰에서 컨트롤입니다.

에 대 한 필수 또는 선택적 필드가 없는 PasswordRecovery 템플릿 보기 성공 합니다.

성공 뷰의 모양을 정의 하는 템플릿을 사용 하는 컨트롤의 동작을 다음 속성에 대해서만 영향을 줍니다.

성공 뷰에 대 한 템플릿으로 사용 하는 경우 다른 모든 속성은 사용 하지는 PasswordRecovery 제어 합니다.

적용 대상

추가 정보