PasswordRecovery.SuccessTemplate Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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. Defaultnya 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 yang diwarisi dari WebControl (lihat PasswordRecovery tabel anggota kontrol).
Semua properti lain tidak aktif saat Anda menggunakan templat untuk tampilan PasswordRecovery Keberhasilan kontrol.