Page.IsCrossPagePostBack Property
Gets a value indicating whether the page is involved in a cross-page postback.
Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Booleantrue if the page is participating in a cross-page request; otherwise, false.
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.
| Topic | Location |
|---|---|
| How to: Determine How ASP.NET Web Pages Were Invoked | Building ASP .NET Web Applications |
| How to: Determine How ASP.NET Web Pages Were Invoked | Building ASP .NET Web Applications |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.