This documentation is archived and is not being maintained.

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)

Public ReadOnly Property IsCrossPagePostBack As Boolean
Dim instance As Page
Dim value As Boolean

value = instance.IsCrossPagePostBack

/** @property */
public boolean get_IsCrossPagePostBack ()

public function get IsCrossPagePostBack () : boolean

Not applicable.

Property Value

true 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.

How to: Determine How ASP.NET Web Pages Were InvokedBuilding ASP .NET Web Applications
How to: Determine How ASP.NET Web Pages Were InvokedBuilding ASP .NET Web Applications

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0