Export (0) Print
Expand All

StartPage Class

Provides methods and properties that are used to render start pages that use the Razor view engine.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public abstract class StartPage : WebPageRenderingBase

The StartPage type exposes the following members.

  NameDescription
Protected methodStartPageInitializes a new instance of the StartPage class.
Top

  NameDescription
Public propertyApp (Inherited from WebPageExecutingBase.)
Public propertyAppState (Inherited from WebPageExecutingBase.)
Public propertyCache (Inherited from WebPageRenderingBase.)
Public propertyChildPageGets or sets the child page of the current start page.
Public propertyContextGets or sets the context of the ChildPage page. (Overrides WebPageExecutingBase.Context.)
Public propertyCulture (Inherited from WebPageRenderingBase.)
Protected propertyDisplayMode (Inherited from WebPageRenderingBase.)
Public propertyIsAjax (Inherited from WebPageRenderingBase.)
Public propertyIsPost (Inherited from WebPageRenderingBase.)
Public propertyLayoutGets or sets the path of the layout page for the ChildPage page. (Overrides WebPageRenderingBase.Layout.)
Public propertyPageGets property-like access to ChildPage page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.Page.)
Public propertyPageContext (Inherited from WebPageRenderingBase.)
Public propertyPageDataGets array-like access to ChildPage page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.PageData.)
Public propertyProfile (Inherited from WebPageRenderingBase.)
Public propertyRequest (Inherited from WebPageRenderingBase.)
Public propertyResponse (Inherited from WebPageRenderingBase.)
Public propertyServer (Inherited from WebPageRenderingBase.)
Public propertySession (Inherited from WebPageRenderingBase.)
Public propertyTemplateInfo (Inherited from WebPageRenderingBase.)
Public propertyUICulture (Inherited from WebPageRenderingBase.)
Public propertyUrlData (Inherited from WebPageRenderingBase.)
Public propertyUser (Inherited from WebPageRenderingBase.)
Public propertyVirtualPath (Inherited from WebPageExecutingBase.)
Public propertyVirtualPathFactory (Inherited from WebPageExecutingBase.)
Top

  NameDescription
Protected methodBeginContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Public methodEquals (Inherited from Object.)
Public methodExecute (Inherited from WebPageExecutingBase.)
Public methodExecutePageHierarchyCalls the methods that are used to execute the developer-written code in the _PageStart start page and in the ChildPage page. (Overrides WebPageRenderingBase.ExecutePageHierarchy().)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetOutputWriterReturns the text writer instance that is used to render the page. (Overrides WebPageExecutingBase.GetOutputWriter().)
Public methodStatic memberGetStartPageReturns the initialization page for the specified page.
Public methodGetType (Inherited from Object.)
Public methodHref (Inherited from WebPageExecutingBase.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNormalizeLayoutPagePath (Inherited from WebPageExecutingBase.)
Public methodNormalizePath (Inherited from WebPageExecutingBase.)
Public methodRenderPageRenders the ChildPage page. (Overrides WebPageRenderingBase.RenderPage(String, Object[]).)
Public methodRunPageExecutes the developer-written code in the ChildPage page.
Public methodToString (Inherited from Object.)
Public methodWrite(Object)Writes the string representation of the specified object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(Object).)
Public methodWrite(HelperResult)Writes the string representation of the specified HelperResult object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(HelperResult).)
Public methodWriteAttribute (Inherited from WebPageExecutingBase.)
Public methodWriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Protected methodWriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Public methodWriteLiteralWrites the string representation of the specified object without HTML encoding. (Overrides WebPageExecutingBase.WriteLiteral(Object).)
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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft