SuccessPageUrl Property

PasswordRecovery.SuccessPageUrl Property

Gets or sets the URL of the page to display after sending a password successfully.

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

public virtual string SuccessPageUrl { get; set; }
/** @property */
public String get_SuccessPageUrl ()

/** @property */
public void set_SuccessPageUrl (String value)

public function get SuccessPageUrl () : String

public function set SuccessPageUrl (value : String)

Not applicable.

Property Value

The URL of the password success page. The default is Empty.

The SuccessPageUrl property contains the URL of the page that is displayed after a password has successfully been sent to a user.

If the SuccessPageUrl property is not a null reference (Nothing in Visual Basic), the user is directed to the page defined in the SuccessPageUrl property; otherwise, the page containing the PasswordRecovery control is refreshed.

This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.

The following code example sets the PasswordRecovery control to redirect the user to the page defined in the SuccessPageUrl property after sending the user a new password.

<%@ page language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" >
<head runat="server">
    <title>ASP.NET Example</title>
<form id="form1" runat="server">

    <asp:PasswordRecovery ID="PasswordRecovery1" 
        Runat="server" SuccessPageUrl="newPasswordSent.aspx" />


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

© 2016 Microsoft