WebViewPage<TModel> 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(Of TModel) _
    Inherits WebViewPage
Dim instance As WebViewPage(Of TModel)
public abstract class WebViewPage<TModel> : WebViewPage
generic<typename TModel>
public ref class WebViewPage abstract : public WebViewPage
JScript does not support generic types or methods.

Type Parameters

  • TModel
    The type of the view data model.

The WebViewPage<TModel> type exposes the following members.


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



  Name Description
Public property Ajax Gets or sets the AjaxHelper object that is used to render HTML markup 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. (Inherited from WebViewPage.)
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. (Inherited from WebViewPage.)
Public property TemplateInfo (Inherited from WebPageRenderingBase.)
Public property UICulture (Inherited from WebPageRenderingBase.)
Public property Url Gets or sets the URL of the rendered page. (Inherited from WebViewPage.)
Public property UrlData (Inherited from WebPageRenderingBase.)
Public property User (Inherited from WebPageRenderingBase.)
Public property ViewBag Gets the view bag. (Inherited from WebViewPage.)
Public property ViewContext Gets or sets the information that is used to render the view. (Inherited from WebViewPage.)
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. (Inherited from WebViewPage.)
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. (Inherited from WebViewPage.)
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. (Overrides WebViewPage.InitHelpers().)
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. (Overrides WebViewPage.SetViewData(ViewDataDictionary).)
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