Bagikan melalui


PasswordRecovery.SuccessTemplate Properti

Definisi

Mendapatkan atau mengatur templat yang digunakan untuk menampilkan tampilan PasswordRecovery Keberhasilan kontrol.

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

Nilai Properti

Yang ITemplate berisi templat untuk menampilkan PasswordRecovery kontrol dalam tampilan Berhasil. Default adalah null.

Atribut

Contoh

Contoh kode berikut menunjukkan templat default untuk tampilan Berhasil.

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

Keterangan

Properti SuccessTemplate berisi templat yang menentukan tampilan PasswordRecovery kontrol dalam tampilan Berhasil.

Tidak ada bidang yang diperlukan atau opsional untuk PasswordRecovery templat tampilan Berhasil.

Saat Anda menggunakan templat untuk menentukan tampilan tampilan Berhasil, hanya properti berikut yang memengaruhi perilaku kontrol:

Semua properti lainnya tidak aktif saat Anda menggunakan templat untuk tampilan PasswordRecovery Keberhasilan kontrol.

Berlaku untuk

Lihat juga