Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
ASP.NET Reference
ASP.NET Page Syntax
Directive Syntax
 @ PreviousPageType

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

Other versions are also available for the following:
.NET Framework General Reference
@ PreviousPageType

Provides a way to get strong typing against the previous page, as accessed through the PreviousPage()()() property.

<%@ PreviousPageType attribute="value" [attribute="value"...] %>
TypeName

Specifies the type name for the previous page.

VirtualPath

Specifies the path to the file that generates the strong type.

Use the @ PreviousPageType directive to get strong typing against the PreviousPage()()() property. You can use the @ PreviousPageType directive only on a Web Forms page (an .aspx file). If both attributes, TypeName and VirtualPath, are defined, the @ PreviousPageType directive will fail.

The following code example demonstrates how to specify the path to a file that generates the strong type.

<%@ PreviousPageType VirtualPath="~/SourcePage.aspx"%>

Reference

PreviousPage()()()
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