PasswordRecovery.SuccessTemplate Property

Gets or sets the template used to display the Success view of the PasswordRecovery control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[TemplateContainerAttribute(typeof(PasswordRecovery))] 
public virtual ITemplate SuccessTemplate { get; set; }
/** @property */
public ITemplate get_SuccessTemplate ()

/** @property */
public void set_SuccessTemplate (ITemplate value)

public function get SuccessTemplate () : ITemplate

public function set SuccessTemplate (value : ITemplate)

Not applicable.

Property Value

An ITemplate that contains the template for displaying the PasswordRecovery control in Success view. The default is a null reference (Nothing in Visual Basic).

The SuccessTemplate property contains the template that defines the appearance of the PasswordRecovery control in Success view.

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:

All other properties are inactive when you use a template for the Success view of the PasswordRecovery control.

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>

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: