TemplateRedirectionPage Class
Represents the page class used for all Publishing pages that use the page layout rendering model.
System.Object
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.Page
Microsoft.SharePoint.WebPartPages.WebPartPage
Microsoft.SharePoint.Publishing.PublishingCachablePage
Microsoft.SharePoint.Publishing.TemplateRedirectionPage
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.Page
Microsoft.SharePoint.WebPartPages.WebPartPage
Microsoft.SharePoint.Publishing.PublishingCachablePage
Microsoft.SharePoint.Publishing.TemplateRedirectionPage
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
This class examines the page layout of the current item and transfers execution to the page layout. This page class is used as base page class for all publishing pages that use a page layout. We recommend that you use this page class directly instead of authoring a publishing page. Authors should use the Create Page user interface (UI) to create publishing pages. Developers should use the Add() methods to create a new page through the object model.This class can be used only in a page inside a document library and the page must have a valid ContentTypeId.PageLayout field.