PasswordRecovery.SuccessTemplate Właściwość

Definicja

Pobiera lub ustawia szablon używany do wyświetlania widoku Powodzenie kontrolki 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

Wartość właściwości

Element ITemplate zawierający szablon do wyświetlania kontrolki PasswordRecovery w widoku Powodzenie. Wartość domyślna to null.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia domyślny szablon widoku Powodzenie.

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

Uwagi

Właściwość SuccessTemplate zawiera szablon, który definiuje wygląd kontrolki PasswordRecovery w widoku Powodzenie.

Nie ma wymaganych ani opcjonalnych pól dla szablonu widoku powodzenia PasswordRecovery .

Jeśli używasz szablonu do definiowania wyglądu widoku Powodzenie, tylko następujące właściwości wpływają na zachowanie kontrolki:

Wszystkie inne właściwości są nieaktywne, gdy używasz szablonu dla widoku Powodzenie kontrolki PasswordRecovery .

Dotyczy

Zobacz też