This documentation is archived and is not being maintained.

PasswordRecovery.SuccessTemplate Property

Note: This property is new in the .NET Framework version 2.0.

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)

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#" %>

<script runat="server">

</script>

<html>
<body>
<form 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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: