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 コントロールを表示するためのテンプレートを格納している 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 フィールドはありません。

テンプレートを使用して Success ビューの外観を定義すると、次のプロパティのみがコントロールの動作に影響します。

コントロールの [成功] ビューにテンプレートを使用する場合、他のすべてのプロパティは PasswordRecovery 非アクティブになります。

適用対象

こちらもご覧ください