CreateUserWizard.ContinueDestinationPageUrl 속성

정의

성공 페이지에서 계속 단추를 클릭한 후에 사용자에게 표시되는 페이지의 URL을 가져오거나 설정합니다.

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

속성 값

대상 페이지의 URL입니다. 기본값은 Empty입니다.

특성

예제

다음 코드 예제를 사용 합니다 ContinueDestinationPageUrl 등록 페이지에 도달 하기 전에 사용자가 보고 있는 페이지로 사용자를 반환 하는 속성입니다.

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

설명

속성에는 ContinueDestinationPageUrl 사이트에 등록을 성공적으로 완료한 후 사용자에게 표시되는 웹 페이지의 URL이 포함됩니다. 속성을 설정 ContinueDestinationPageUrl 하여 새로 등록된 사용자가 볼 수 있는 첫 번째 페이지를 제어할 수 있습니다.

속성이 ContinueDestinationPageUrlEmpty 고 사용자가 계속 단추를 클릭하면 페이지가 새로 고쳐지고 양식의 모든 값이 지워집니다.

이 속성은 테마 또는 스타일시트 테마에 의해 설정될 수 없습니다. 자세한 내용은 ThemeableAttribute 하 고 ASP.NET 테마 및 스킨합니다.

적용 대상

추가 정보