CreateUserWizard.ContinueDestinationPageUrl Propriedade

Definição

Obtém ou define a URL da página que o usuário verá depois de clicar no botão Continuar na página de êxito.Gets or sets the URL of the page that the user will see after clicking the Continue button on the success page.

public:
 virtual property System::String ^ ContinueDestinationPageUrl { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string ContinueDestinationPageUrl { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.ContinueDestinationPageUrl : string with get, set
Public Overridable Property ContinueDestinationPageUrl As String

Valor da propriedade

String

A URL da página de destino.The URL of the destination page. O padrão é Empty.The default is Empty.

Atributos

Exemplos

O exemplo de código a seguir usa a ContinueDestinationPageUrl propriedade para retornar o usuário para a página que o usuário estava visualizando antes de acessar a página de registro.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>
<%@ 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 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>

Comentários

A ContinueDestinationPageUrl propriedade contém a URL da página da Web que o usuário verá depois de concluir o registro com êxito no seu site.The ContinueDestinationPageUrl property contains the URL of the Web page that the user will see after successfully completing registration on your site. Ao definir a ContinueDestinationPageUrl propriedade, você pode controlar a primeira página que os usuários recentemente registrados veem.By setting the ContinueDestinationPageUrl property, you can control the first page that newly registered users see.

Quando a ContinueDestinationPageUrl propriedade é Empty e o usuário clica no botão continuar , a página é atualizada e todos os valores no formulário são apagados.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.

Esta propriedade não pode ser definida por temas ou temas de folha de estilo.This property cannot be set by themes or style sheet themes. Para obter mais informações, consulte ThemeableAttribute e temas e capas do ASP.net.For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

Aplica-se a