Page.IsCrossPagePostBack Property

Definition

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

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

Property Value

true if the page is participating in a cross-page request; otherwise, false.

Attributes

Remarks

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

In either case, the 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 IsCrossPagePostBack property (accessible through the PreviousPage property) will be true and Page B's PreviousPage property will have the name of Page A.

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