WebViewPage Class

 

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

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

Inheritance Hierarchy

System.Object
  System.Web.WebPages.WebPageExecutingBase
    System.Web.WebPages.WebPageRenderingBase
      System.Web.WebPages.WebPageBase
        System.Web.Mvc.WebViewPage
          System.Web.Mvc.WebViewPage<TModel>

Syntax

public abstract class WebViewPage : WebPageBase, IViewDataContainer
public ref class WebViewPage abstract : WebPageBase, IViewDataContainer
[<AbstractClass>]
type WebViewPage = 
    class
        inherit WebPageBase
        interface IViewDataContainer
    end
Public MustInherit Class WebViewPage
    Inherits WebPageBase
    Implements IViewDataContainer

Constructors

Name Description
System_CAPS_protmethod WebViewPage()

Initializes a new instance of the WebViewPage class.

Properties

Name Description
System_CAPS_pubproperty Ajax

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

System_CAPS_pubproperty App

(Inherited from WebPageExecutingBase.)

System_CAPS_pubproperty AppState

(Inherited from WebPageExecutingBase.)

System_CAPS_pubproperty Cache

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Context

Gets the HttpContext object that is associated with the page.(Overrides WebPageExecutingBase.Context.)

System_CAPS_pubproperty Culture

(Inherited from WebPageRenderingBase.)

System_CAPS_protproperty DisplayMode

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Html

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

System_CAPS_pubproperty IsAjax

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty IsPost

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Layout

(Inherited from WebPageBase.)

System_CAPS_pubproperty Model

Gets the Model property of the associated ViewDataDictionary object.

System_CAPS_pubproperty Output

(Inherited from WebPageBase.)

System_CAPS_pubproperty OutputStack

(Inherited from WebPageBase.)

System_CAPS_pubproperty Page

(Inherited from WebPageBase.)

System_CAPS_pubproperty PageContext

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty PageData

(Inherited from WebPageBase.)

System_CAPS_pubproperty Profile

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Request

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Response

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Server

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Session

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty TempData

Gets the temporary data to pass to the view.

System_CAPS_pubproperty TemplateInfo

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty UICulture

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty Url

Gets or sets the URL of the rendered page.

System_CAPS_pubproperty UrlData

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty User

(Inherited from WebPageRenderingBase.)

System_CAPS_pubproperty ViewBag

Gets the view bag.

System_CAPS_pubproperty ViewContext

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

System_CAPS_pubproperty ViewData

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

System_CAPS_pubproperty VirtualPath

(Inherited from WebPageExecutingBase.)

Methods

Name Description
System_CAPS_protmethod BeginContext(Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod BeginContext(String, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod BeginContext(TextWriter, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod BeginContext(TextWriter, String, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod ConfigurePage(WebPageBase)

Sets the view context and view data for the page.(Overrides WebPageBase.ConfigurePage(WebPageBase).)

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

(Inherited from WebPageBase.)

System_CAPS_pubmethod DefineSection(String, SectionWriter)

(Inherited from WebPageBase.)

System_CAPS_protmethod EndContext(Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod EndContext(String, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod EndContext(TextWriter, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod EndContext(TextWriter, String, Int32, Int32, Boolean)

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecutePageHierarchy()

Runs the page hierarchy for the ASP.NET Razor execution pipeline.(Overrides WebPageBase.ExecutePageHierarchy().)

System_CAPS_pubmethod ExecutePageHierarchy(WebPageContext, TextWriter)

(Inherited from WebPageBase.)

System_CAPS_pubmethod ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase)

(Inherited from WebPageBase.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetOutputWriter()

(Inherited from WebPageBase.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Href(String, Object[])

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod InitHelpers()

Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes.

System_CAPS_protmethod InitializePage()

(Inherited from WebPageBase.)

System_CAPS_pubmethod IsSectionDefined(String)

(Inherited from WebPageBase.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod NormalizeLayoutPagePath(String)

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod NormalizePath(String)

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod PopContext()

(Inherited from WebPageBase.)

System_CAPS_pubmethod PushContext(WebPageContext, TextWriter)

(Inherited from WebPageBase.)

System_CAPS_pubmethod RenderBody()

(Inherited from WebPageBase.)

System_CAPS_pubmethod RenderPage(String, Object[])

(Inherited from WebPageBase.)

System_CAPS_pubmethod RenderSection(String)

(Inherited from WebPageBase.)

System_CAPS_pubmethod RenderSection(String, Boolean)

(Inherited from WebPageBase.)

System_CAPS_protmethod SetViewData(ViewDataDictionary)

Sets the view data.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Write(HelperResult)

(Inherited from WebPageBase.)

System_CAPS_pubmethod Write(Object)

(Inherited from WebPageBase.)

System_CAPS_pubmethod WriteAttribute(String, PositionTagged<String>, PositionTagged<String>, AttributeValue[])

(Inherited from WebPageExecutingBase.)

System_CAPS_protmethod WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[])

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[])

(Inherited from WebPageExecutingBase.)

System_CAPS_pubmethod WriteLiteral(Object)

(Inherited from WebPageBase.)

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.

See Also

System.Web.Mvc Namespace

Return to top