StartPage Class
Provides methods and properties that are used to render start pages that use the Razor view engine.
Inheritance Hierarchy
System.Object
System.Web.WebPages.WebPageExecutingBase
System.Web.WebPages.WebPageRenderingBase
System.Web.WebPages.StartPage
System.Web.WebPages.Administration.PackageManager.pagestart
System.Web.WebPages.Administration.pagestart
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public MustInherit Class StartPage _
Inherits WebPageRenderingBase
'Usage
Dim instance As StartPage
public abstract class StartPage : WebPageRenderingBase
public ref class StartPage abstract : public WebPageRenderingBase
[<AbstractClassAttribute>]
type StartPage =
class
inherit WebPageRenderingBase
end
public abstract class StartPage extends WebPageRenderingBase
The StartPage type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StartPage | Initializes a new instance of the StartPage class. |
Top
Properties
Name | Description | |
---|---|---|
App | (Inherited from WebPageExecutingBase.) | |
AppState | (Inherited from WebPageExecutingBase.) | |
Cache | (Inherited from WebPageRenderingBase.) | |
ChildPage | Gets or sets the child page of the current start page. | |
Context | Gets or sets the context of the ChildPage page. (Overrides WebPageExecutingBase.Context.) | |
Culture | (Inherited from WebPageRenderingBase.) | |
DisplayMode | (Inherited from WebPageRenderingBase.) | |
IsAjax | (Inherited from WebPageRenderingBase.) | |
IsPost | (Inherited from WebPageRenderingBase.) | |
Layout | Gets or sets the path of the layout page for the ChildPage page. (Overrides WebPageRenderingBase.Layout.) | |
Page | Gets property-like access to ChildPage page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.Page.) | |
PageContext | (Inherited from WebPageRenderingBase.) | |
PageData | Gets array-like access to ChildPage page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.PageData.) | |
Profile | (Inherited from WebPageRenderingBase.) | |
Request | (Inherited from WebPageRenderingBase.) | |
Response | (Inherited from WebPageRenderingBase.) | |
Server | (Inherited from WebPageRenderingBase.) | |
Session | (Inherited from WebPageRenderingBase.) | |
TemplateInfo | (Inherited from WebPageRenderingBase.) | |
UICulture | (Inherited from WebPageRenderingBase.) | |
UrlData | (Inherited from WebPageRenderingBase.) | |
User | (Inherited from WebPageRenderingBase.) | |
VirtualPath | (Inherited from WebPageExecutingBase.) | |
VirtualPathFactory | (Inherited from WebPageExecutingBase.) |
Top
Methods
Top
Remarks
A _PageStart start page (_PageStart.cshtml or _PageStart.vbhtml page) runs when a request is made to a page within a folder and before any code in an individual pages runs. A _PageStart page is useful for setting up a consistent layout for all the pages within a particular folder. For more information, see Adding Website Startup Code.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.