.NET Framework Class Library
Page.PreviousPage Property

Note: This property is new in the .NET Framework version 2.0.

Gets the page that transferred control to the current page.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

Syntax

Visual Basic (Declaration)
Public ReadOnly Property PreviousPage As Page
Visual Basic (Usage)
Dim instance As Page
Dim value As Page

value = instance.PreviousPage
C#
public Page PreviousPage { get; }
C++
public:
property Page^ PreviousPage {
    Page^ get ();
}
J#
/** @property */
public Page get_PreviousPage ()
JScript
public function get PreviousPage () : Page

Property Value

The Page representing the page that transferred control to the current page.
Remarks

When you use the Transfer method or cross-page posting to transfer processing from one ASP.NET page to another, the originating page contains request information that might be required for the destination page. You use the PreviousPage property to access that information

The PreviousPage property is a null reference (Nothing in Visual Basic) when the user requests that page directly from the server.

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
How to: Pass Values Between ASP.NET Web PagesBuilding ASP .NET Web Applications
How to: Pass Values Between ASP.NET Web PagesBuilding ASP .NET Web Applications
How to: Pass Values Between ASP.NET Web PagesBuilding ASP .NET Web Applications in Visual Studio
How to: Pass Values Between ASP.NET Web PagesBuilding ASP .NET Web Applications in Visual Studio
Platforms

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0
See Also

Tags :


Page view tracker