Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 ContinueDestinationPageUrl Property
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
CreateUserWizard..::.ContinueDestinationPageUrl Property

Updated: November 2007

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

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

Visual Basic (Declaration)
<ThemeableAttribute(False)> _
Public Overridable Property ContinueDestinationPageUrl As String
Visual Basic (Usage)
Dim instance As CreateUserWizard
Dim value As String

value = instance.ContinueDestinationPageUrl

instance.ContinueDestinationPageUrl = value
C#
[ThemeableAttribute(false)]
public virtual string ContinueDestinationPageUrl { get; set; }
Visual C++
[ThemeableAttribute(false)]
public:
virtual property String^ ContinueDestinationPageUrl {
    String^ get ();
    void set (String^ value);
}
J#
/** @property */
/** @attribute ThemeableAttribute(false) */
public String get_ContinueDestinationPageUrl()
/** @property */
/** @attribute ThemeableAttribute(false) */
public  void set_ContinueDestinationPageUrl(String value)
JScript
public function get ContinueDestinationPageUrl () : String
public function set ContinueDestinationPageUrl (value : String)
ASP.NET
<asp:CreateUserWizard ContinueDestinationPageUrl="String" />

Property Value

Type: System..::.String

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

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 Overview.

TopicLocation
How to: Enable User RegistrationBuilding ASP .NET Web Applications
How to: Enable User RegistrationBuilding ASP .NET Web Applications
How to: Enable User RegistrationBuilding ASP .NET Web Applications in Visual Studio

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.

Visual Basic
<%@ 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">
    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

        If Not Session("CreateUserReferrerUrl") Is Nothing Then
            Session("CreateUserReferrerUrl") = Request.UrlReferrer.ToString()
        End If
        CreateUserWizard1.ContinueDestinationPageUrl = _
            CStr(Session("CreateUserReferrerUrl"))
    End Sub
</script>

<html  >
<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>

C#
<%@ 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  >
<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>

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker