WebViewPage WebViewPage WebViewPage Class

Definition

Represents the properties and methods that are needed in order to render a view that uses ASP.NET Razor syntax.

public abstract class WebViewPage : System.Web.WebPages.WebPageBase, System.Web.Mvc.IViewDataContainer
type WebViewPage = class
    inherit WebPageBase
    interface IViewDataContainer
Public MustInherit Class WebViewPage
Inherits WebPageBase
Implements IViewDataContainer
Inheritance
Derived
Implements

Constructors

WebViewPage() WebViewPage() WebViewPage()

Initializes a new instance of the WebViewPage class.

Properties

Ajax Ajax Ajax

Gets or sets the AjaxHelper object that is used to render HTML using Ajax.

App App App Inherited from WebPageExecutingBase
AppState AppState AppState Inherited from WebPageExecutingBase
Cache Cache Cache Inherited from WebPageRenderingBase
Context Context Context

Gets the HttpContext object that is associated with the page.

Culture Culture Culture Inherited from WebPageRenderingBase
DisplayMode DisplayMode DisplayMode Inherited from WebPageRenderingBase
Html Html Html

Gets or sets the HtmlHelper object that is used to render HTML elements.

IsAjax IsAjax IsAjax Inherited from WebPageRenderingBase
IsPost IsPost IsPost Inherited from WebPageRenderingBase
Layout Layout Layout

Gets or sets the path of a layout page.

(Inherited from WebPageBase)
Model Model Model

Gets the Model property of the associated ViewDataDictionary object.

Output Output Output

Gets the current TextWriter object for the page.

(Inherited from WebPageBase)
OutputStack OutputStack OutputStack

Gets the stack of TextWriter objects for the current page context.

(Inherited from WebPageBase)
Page Page Page

Provides property-like access to page data that is shared between pages, layout pages, and partial pages.

(Inherited from WebPageBase)
PageContext PageContext PageContext Inherited from WebPageRenderingBase
PageData PageData PageData

Provides array-like access to page data that is shared between pages, layout pages, and partial pages.

(Inherited from WebPageBase)
Profile Profile Profile Inherited from WebPageRenderingBase
Request Request Request Inherited from WebPageRenderingBase
Response Response Response Inherited from WebPageRenderingBase
Server Server Server Inherited from WebPageRenderingBase
Session Session Session Inherited from WebPageRenderingBase
TempData TempData TempData

Gets the temporary data to pass to the view.

TemplateInfo TemplateInfo TemplateInfo Inherited from WebPageRenderingBase
UICulture UICulture UICulture Inherited from WebPageRenderingBase
Url Url Url

Gets or sets the URL of the rendered page.

UrlData UrlData UrlData Inherited from WebPageRenderingBase
User User User Inherited from WebPageRenderingBase
ViewBag ViewBag ViewBag

Gets the view bag.

ViewContext ViewContext ViewContext

Gets or sets the information that is used to render the view.

ViewData ViewData ViewData

Gets or sets a dictionary that contains data to pass between the controller and the view.

VirtualPath VirtualPath VirtualPath Inherited from WebPageExecutingBase
VirtualPathFactory VirtualPathFactory VirtualPathFactory Inherited from WebPageExecutingBase

Methods

BeginContext(Int32, Int32, Boolean) BeginContext(Int32, Int32, Boolean) BeginContext(Int32, Int32, Boolean) Inherited from WebPageExecutingBase
BeginContext(String, Int32, Int32, Boolean) BeginContext(String, Int32, Int32, Boolean) BeginContext(String, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
BeginContext(TextWriter, Int32, Int32, Boolean) BeginContext(TextWriter, Int32, Int32, Boolean) BeginContext(TextWriter, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
BeginContext(TextWriter, String, Int32, Int32, Boolean) BeginContext(TextWriter, String, Int32, Int32, Boolean) BeginContext(TextWriter, String, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
ConfigurePage(WebPageBase) ConfigurePage(WebPageBase) ConfigurePage(WebPageBase)

Sets the view context and view data for the page.

CreatePageFromVirtualPath(String, HttpContextBase, Func<String,Boolean>, DisplayModeProvider, IDisplayMode) CreatePageFromVirtualPath(String, HttpContextBase, Func<String,Boolean>, DisplayModeProvider, IDisplayMode) CreatePageFromVirtualPath(String, HttpContextBase, Func<String,Boolean>, DisplayModeProvider, IDisplayMode)

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

(Inherited from WebPageBase)
DefineSection(String, SectionWriter) DefineSection(String, SectionWriter) DefineSection(String, SectionWriter)

Called by content pages to create named content sections.

(Inherited from WebPageBase)
EndContext(Int32, Int32, Boolean) EndContext(Int32, Int32, Boolean) EndContext(Int32, Int32, Boolean) Inherited from WebPageExecutingBase
EndContext(String, Int32, Int32, Boolean) EndContext(String, Int32, Int32, Boolean) EndContext(String, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
EndContext(TextWriter, Int32, Int32, Boolean) EndContext(TextWriter, Int32, Int32, Boolean) EndContext(TextWriter, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
EndContext(TextWriter, String, Int32, Int32, Boolean) EndContext(TextWriter, String, Int32, Int32, Boolean) EndContext(TextWriter, String, Int32, Int32, Boolean) Inherited from WebPageExecutingBase
Execute() Execute() Execute() Inherited from WebPageExecutingBase
ExecutePageHierarchy() ExecutePageHierarchy() ExecutePageHierarchy()

Runs the page hierarchy for the ASP.NET Razor execution pipeline.

ExecutePageHierarchy(WebPageContext, TextWriter) ExecutePageHierarchy(WebPageContext, TextWriter) ExecutePageHierarchy(WebPageContext, TextWriter)

Executes the code in a set of dependent web pages by using the specified parameters.

(Inherited from WebPageBase)
ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase) ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase) ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase)

Executes the code in a set of dependent web pages by using the specified context, writer, and start page.

(Inherited from WebPageBase)
GetOutputWriter() GetOutputWriter() GetOutputWriter()

Returns the text writer instance that is used to render the page.

(Inherited from WebPageBase)
Href(String, Object[]) Href(String, Object[]) Href(String, Object[]) Inherited from WebPageExecutingBase
InitHelpers() InitHelpers() InitHelpers()

Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes.

InitializePage() InitializePage() InitializePage()

Initializes the current page.

(Inherited from WebPageBase)
IsSectionDefined(String) IsSectionDefined(String) IsSectionDefined(String)

Returns a value that indicates whether the specified section is defined in the page.

(Inherited from WebPageBase)
NormalizeLayoutPagePath(String) NormalizeLayoutPagePath(String) NormalizeLayoutPagePath(String) Inherited from WebPageExecutingBase
NormalizePath(String) NormalizePath(String) NormalizePath(String) Inherited from WebPageExecutingBase
PopContext() PopContext() PopContext()

Returns and removes the context from the top of the OutputStack instance.

(Inherited from WebPageBase)
PushContext(WebPageContext, TextWriter) PushContext(WebPageContext, TextWriter) PushContext(WebPageContext, TextWriter)

Inserts the specified context at the top of the OutputStack instance.

(Inherited from WebPageBase)
RenderBody() RenderBody() RenderBody()

In layout pages, renders the portion of a content page that is not within a named section.

(Inherited from WebPageBase)
RenderPage(String, Object[]) RenderPage(String, Object[]) RenderPage(String, Object[])

Renders the content of one page within another page.

(Inherited from WebPageBase)
RenderSection(String) RenderSection(String) RenderSection(String)

In layout pages, renders the content of a named section.

(Inherited from WebPageBase)
RenderSection(String, Boolean) RenderSection(String, Boolean) RenderSection(String, Boolean)

In layout pages, renders the content of a named section and specifies whether the section is required.

(Inherited from WebPageBase)
SetViewData(ViewDataDictionary) SetViewData(ViewDataDictionary) SetViewData(ViewDataDictionary)

Sets the view data.

Write(HelperResult) Write(HelperResult) Write(HelperResult)

Writes the specified HelperResult object as an HTML-encoded string.

(Inherited from WebPageBase)
Write(Object) Write(Object) Write(Object)

Writes the specified object as an HTML-encoded string.

(Inherited from WebPageBase)
WriteAttribute(String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttribute(String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttribute(String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) Inherited from WebPageExecutingBase
WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) Inherited from WebPageExecutingBase
WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) Inherited from WebPageExecutingBase
WriteLiteral(Object) WriteLiteral(Object) WriteLiteral(Object)

Writes the specified object without HTML-encoding it first.

(Inherited from WebPageBase)

Applies to