WebViewPage Class

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

Inheritance Hierarchy


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


Public MustInherit Class WebViewPage _
    Inherits WebPageBase _
    Implements IViewDataContainer
Dim instance As WebViewPage
public abstract class WebViewPage : WebPageBase, 
public ref class WebViewPage abstract : public WebPageBase, 
public abstract class WebViewPage extends WebPageBase implements IViewDataContainer

The WebViewPage type exposes the following members.


  Name Description
Protected method WebViewPage Initializes a new instance of the WebViewPage class.



  Name Description
Public property Ajax Gets or sets the AjaxHelper object that is used to render HTML using Ajax.
Public property App (Inherited from WebPageExecutingBase.)
Public property AppState (Inherited from WebPageExecutingBase.)
Public property Cache (Inherited from WebPageRenderingBase.)
Public property Context Gets the HttpContext object that is associated with the page. (Overrides WebPageExecutingBase.Context.)
Public property Culture (Inherited from WebPageRenderingBase.)
Public property Html Gets or sets the HtmlHelper object that is used to render HTML elements.
Public property IsAjax (Inherited from WebPageRenderingBase.)
Public property IsPost (Inherited from WebPageRenderingBase.)
Public property Layout (Inherited from WebPageBase.)
Public property Model Gets the Model property of the associated ViewDataDictionary object.
Public property Output (Inherited from WebPageBase.)
Public property OutputStack (Inherited from WebPageBase.)
Public property Page (Inherited from WebPageBase.)
Public property PageContext (Inherited from WebPageRenderingBase.)
Public property PageData (Inherited from WebPageBase.)
Public property Request (Inherited from WebPageRenderingBase.)
Public property Response (Inherited from WebPageRenderingBase.)
Public property Server (Inherited from WebPageRenderingBase.)
Public property Session (Inherited from WebPageRenderingBase.)
Public property TempData Gets the temporary data to pass to the view.
Public property TemplateInfo (Inherited from WebPageRenderingBase.)
Public property UICulture (Inherited from WebPageRenderingBase.)
Public property Url Gets or sets the URL of the rendered page.
Public property UrlData (Inherited from WebPageRenderingBase.)
Public property User (Inherited from WebPageRenderingBase.)
Public property ViewBag Gets the view bag.
Public property ViewContext Gets or sets the information that is used to render the view.
Public property ViewData Gets or sets a dictionary that contains data to pass between the controller and the view.
Public property VirtualPath (Inherited from WebPageExecutingBase.)



  Name Description
Protected method ConfigurePage Sets the view context and view data for the page. (Overrides WebPageBase.ConfigurePage(WebPageBase).)
Public method DefineSection (Inherited from WebPageBase.)
Public method Equals (Inherited from Object.)
Public method Execute (Inherited from WebPageExecutingBase.)
Public method ExecutePageHierarchy() Runs the page hierarchy for the ASP.NET Razor execution pipeline. (Overrides WebPageBase.ExecutePageHierarchy().)
Public method ExecutePageHierarchy(WebPageContext, TextWriter) (Inherited from WebPageBase.)
Public method ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase) (Inherited from WebPageBase.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Href (Inherited from WebPageRenderingBase.)
Public method InitHelpers Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes.
Protected method InitializePage (Inherited from WebPageBase.)
Public method IsSectionDefined (Inherited from WebPageBase.)
Protected method MemberwiseClone (Inherited from Object.)
Public method NormalizePath (Inherited from WebPageExecutingBase.)
Public method PopContext (Inherited from WebPageBase.)
Public method PushContext (Inherited from WebPageBase.)
Public method RenderBody (Inherited from WebPageBase.)
Public method RenderPage (Inherited from WebPageBase.)
Public method RenderSection(String) (Inherited from WebPageBase.)
Public method RenderSection(String, Boolean) (Inherited from WebPageBase.)
Protected method SetViewData Sets the view data.
Public method ToString (Inherited from Object.)
Public method Write(HelperResult) (Inherited from WebPageBase.)
Public method Write(Object) (Inherited from WebPageBase.)
Public method WriteLiteral (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