System.Web.UI.Page.IsCrossPagePostBack Property

Gets a value indicating whether the page is involved in a cross-page postback.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool IsCrossPagePostBack { get; }

Value

Documentation for this section has not yet been entered.

Remarks

ASP.NET provides two mechanisms for transferring control from one page to another. You can use the System.Web.HttpServerUtility.Transfer(string) method to transfer processing between pages, or you can make a cross-page request by assigning a page URL to the System.Web.UI.WebControls.IButtonControl.PostBackUrl property of a button control that implements the System.Web.UI.WebControls.IButtonControl interface.

In either case, the Page.PreviousPage page property will contain an object that represents the previous or originator page. If, for example, Page A posts to Page B, Page A's Page.IsCrossPagePostBack property (accessible through the Page.PreviousPage property) will be true and Page B's Page.PreviousPage property will have the name of Page A.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0