PasswordRecovery.SuccessTemplate プロパティ
定義
PasswordRecovery コントロールの正常に完了ビューを表示するために使用するテンプレートを取得または設定します。Gets or sets the template used to display the Success view of the PasswordRecovery control.
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。An ITemplate that contains the template for displaying the PasswordRecovery control in Success view. 既定では、 null
です。The default is null
.
- 属性
例
次のコード例は、[成功] ビューの既定のテンプレートを示しています。The following code example shows the default template for the Success view.
<%@ 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 ます。The SuccessTemplate property contains the template that defines the appearance of the PasswordRecovery control in Success view.
成功ビューテンプレートに必須またはオプションのフィールドはありません PasswordRecovery 。There are no required or optional fields for the PasswordRecovery Success view template.
テンプレートを使用して [成功] ビューの外観を定義すると、コントロールの動作に影響を与えるプロパティは次のようになります。When you use a template to define the appearance of the Success view, only the following properties affect the behavior of the control:
から継承されたすべてのプロパティ WebControl (「コントロールメンバー」の表を参照 PasswordRecovery )。All properties inherited from WebControl (see the PasswordRecovery control members table).
コントロールの [成功] ビューにテンプレートを使用すると、他のすべてのプロパティは非アクティブに PasswordRecovery なります。All other properties are inactive when you use a template for the Success view of the PasswordRecovery control.