C# Class System.Web.WebPages.WebPageBase

Inheritance: System.Web.WebPages.WebPageRenderingBase
Show file Open project: drivenet/aspnetwebstack Class Usage Examples

Private Properties

Property Type Description
CreateInstanceFromVirtualPath WebPageBase
CreatePageContextFromParameters System.Web.WebPages.WebPageContext
EnsurePageCanBeRequestedDirectly void
ExecutePageHierarchy void
RenderPageCore System.Web.WebPages.HelperResult
RenderSurrounding void
VerifyRenderedBodyOrSections void

Public Methods

Method Description
CreateInstanceFromVirtualPath ( string virtualPath ) : WebPageBase
DefineSection ( string name, SectionWriter action ) : void
ExecutePageHierarchy ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer ) : void
ExecutePageHierarchy ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer, System.Web.WebPages.WebPageRenderingBase startPage ) : void
IsSectionDefined ( string name ) : bool
PopContext ( ) : void
PushContext ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer ) : void
RenderBody ( ) : System.Web.WebPages.HelperResult
RenderPage ( string path ) : System.Web.WebPages.HelperResult
RenderSection ( string name ) : System.Web.WebPages.HelperResult
RenderSection ( string name, bool required ) : System.Web.WebPages.HelperResult
Write ( System.Web.WebPages.HelperResult result ) : void
Write ( object value ) : void
WriteLiteral ( object value ) : void

Protected Methods

Method Description
ConfigurePage ( WebPageBase parentPage ) : void
CreatePageFromVirtualPath ( string virtualPath, HttpContextBase httpContext, bool>.Func virtualPathExists, System.Web.WebPages.DisplayModeProvider displayModeProvider, IDisplayMode displayMode ) : WebPageBase

Attempts to create a WebPageBase instance from a virtualPath and wraps complex compiler exceptions with simpler messages

GetOutputWriter ( ) : TextWriter
InitializePage ( ) : void

Private Methods

Method Description
CreateInstanceFromVirtualPath ( string virtualPath, IVirtualPathFactory virtualPathFactory ) : WebPageBase
CreatePageContextFromParameters ( bool isLayoutPage ) : System.Web.WebPages.WebPageContext
EnsurePageCanBeRequestedDirectly ( string methodName ) : void
ExecutePageHierarchy ( ) : void
RenderPageCore ( string path, bool isLayoutPage, object data ) : System.Web.WebPages.HelperResult
RenderSurrounding ( string partialViewName, Action body ) : void
VerifyRenderedBodyOrSections ( ) : void

Method Details

ConfigurePage() protected method

protected ConfigurePage ( WebPageBase parentPage ) : void
parentPage WebPageBase
return void

CreateInstanceFromVirtualPath() public static method

public static CreateInstanceFromVirtualPath ( string virtualPath ) : WebPageBase
virtualPath string
return WebPageBase

CreatePageFromVirtualPath() protected method

Attempts to create a WebPageBase instance from a virtualPath and wraps complex compiler exceptions with simpler messages
protected CreatePageFromVirtualPath ( string virtualPath, HttpContextBase httpContext, bool>.Func virtualPathExists, System.Web.WebPages.DisplayModeProvider displayModeProvider, IDisplayMode displayMode ) : WebPageBase
virtualPath string
httpContext HttpContextBase
virtualPathExists bool>.Func
displayModeProvider System.Web.WebPages.DisplayModeProvider
displayMode IDisplayMode
return WebPageBase

DefineSection() public method

public DefineSection ( string name, SectionWriter action ) : void
name string
action SectionWriter
return void

ExecutePageHierarchy() public method

public ExecutePageHierarchy ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer ) : void
pageContext System.Web.WebPages.WebPageContext
writer System.IO.TextWriter
return void

ExecutePageHierarchy() public method

public ExecutePageHierarchy ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer, System.Web.WebPages.WebPageRenderingBase startPage ) : void
pageContext System.Web.WebPages.WebPageContext
writer System.IO.TextWriter
startPage System.Web.WebPages.WebPageRenderingBase
return void

GetOutputWriter() protected method

protected GetOutputWriter ( ) : TextWriter
return System.IO.TextWriter

InitializePage() protected method

protected InitializePage ( ) : void
return void

IsSectionDefined() public method

public IsSectionDefined ( string name ) : bool
name string
return bool

PopContext() public method

public PopContext ( ) : void
return void

PushContext() public method

public PushContext ( System.Web.WebPages.WebPageContext pageContext, TextWriter writer ) : void
pageContext System.Web.WebPages.WebPageContext
writer System.IO.TextWriter
return void

RenderBody() public method

public RenderBody ( ) : System.Web.WebPages.HelperResult
return System.Web.WebPages.HelperResult

RenderPage() public method

public RenderPage ( string path ) : System.Web.WebPages.HelperResult
path string
return System.Web.WebPages.HelperResult

RenderSection() public method

public RenderSection ( string name ) : System.Web.WebPages.HelperResult
name string
return System.Web.WebPages.HelperResult

RenderSection() public method

public RenderSection ( string name, bool required ) : System.Web.WebPages.HelperResult
name string
required bool
return System.Web.WebPages.HelperResult

Write() public method

public Write ( System.Web.WebPages.HelperResult result ) : void
result System.Web.WebPages.HelperResult
return void

Write() public method

public Write ( object value ) : void
value object
return void

WriteLiteral() public method

public WriteLiteral ( object value ) : void
value object
return void