Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.Web.UI
Page Class
Page Properties
 PreviousPage Property

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.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)

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.

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

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.

.NET Framework

Supported in: 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker