CreateUserWizard.ContinueDestinationPageUrl Property

Definition

Gets or sets the URL of the page that the user will see after clicking the Continue button on the success page.

[System.Web.UI.Themeable(false)]
public virtual string ContinueDestinationPageUrl { get; set; }

Property Value

The URL of the destination page. The default is Empty.

Attributes

Examples

The following code example uses the ContinueDestinationPageUrl property to return the user to the page that the user was viewing before reaching the registration page.

<%@ 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">
    void Page_Load(object sender, EventArgs e)
    {
        if (!(Session["CreateUserReferrerUrl"] is String))
        {
            Session["CreateUserReferrerUrl"] = Request.UrlReferrer.ToString ();
        }

        CreateUserWizard1.ContinueDestinationPageUrl =
            (string)Session["CreateUserReferrerUrl"];
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:createuserwizard id="CreateUserWizard1" runat="server">
        </asp:createuserwizard>
    </div>
    </form>
</body>
</html>

Remarks

The ContinueDestinationPageUrl property contains the URL of the Web page that the user will see after successfully completing registration on your site. By setting the ContinueDestinationPageUrl property, you can control the first page that newly registered users see.

When the ContinueDestinationPageUrl property is Empty and the user clicks the Continue button, the page is refreshed and any values on the form are cleared.

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also