StartPage Class
Provides methods and properties that are used to render start pages that use the Razor view engine.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
The StartPage type exposes the following members.
| 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
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.
Show:
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)