Export (0) Print
Expand All

PasswordRecovery.SuccessPageUrl Property

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

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)

[ThemeableAttribute(false)] 
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)

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 ASP.NET Themes and Skins Overview.

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

<script runat="server">

</script>

<html>
<body>
<form runat="server">
    <asp:passwordrecovery id="PasswordRecovery1" runat="server" passwordsuccessaction="Redirect" successpageurl="newPasswordSent.aspx"></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

Community Additions

ADD
Show:
© 2014 Microsoft