Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
'Declaration
<BrowsableAttribute(False)> _
<TemplateContainerAttribute(GetType(PasswordRecovery))> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
Public Overridable Property SuccessTemplate As ITemplate
<asp:PasswordRecovery>
	<SuccessTemplate>ITemplate</SuccessTemplate>
</asp:PasswordRecovery>

Property Value

Type: System.Web.UI.ITemplate
An ITemplate that contains the template for displaying the PasswordRecovery control in Success view. The default is Nothing.

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="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>


.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.