.NET Framework Class Library
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)
Syntax

Visual Basic (Declaration)
<BrowsableAttribute(False)> _
Public ReadOnly Property IsCrossPagePostBack As Boolean
Visual Basic (Usage)
Dim instance As Page
Dim value As Boolean

value = instance.IsCrossPagePostBack
C#
[BrowsableAttribute(false)]
public bool IsCrossPagePostBack { get; }
Visual C++
[BrowsableAttribute(false)]
public:
property bool IsCrossPagePostBack {
    bool get ();
}
JScript
public function get IsCrossPagePostBack () : boolean

Property Value

Type: System..::.Boolean
true if the page is participating in a cross-page request; otherwise, false.
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.

TopicLocation
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
How to: Determine How ASP.NET Web Pages Were InvokedBuilding ASP .NET Web Applications in Visual Studio
How to: Determine How ASP.NET Web Pages Were InvokedBuilding ASP .NET Web Applications in Visual Studio
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

Tags :


Page view tracker