WebViewPage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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() |
Initializes a new instance of the WebViewPage class. |
Properties
Ajax |
Gets or sets the AjaxHelper object that is used to render HTML using Ajax. |
Context |
Gets the HttpContext object that is associated with the page. |
Html |
Gets or sets the HtmlHelper object that is used to render HTML elements. |
Model |
Gets the Model property of the associated ViewDataDictionary object. |
TempData |
Gets the temporary data to pass to the view. |
Url |
Gets or sets the URL of the rendered page. |
ViewBag |
Gets the view bag. |
ViewContext |
Gets or sets the information that is used to render the view. |
ViewData |
Gets or sets a dictionary that contains data to pass between the controller and the view. |
Methods
ConfigurePage(WebPageBase) |
Sets the view context and view data for the page. |
ExecutePageHierarchy() |
Runs the page hierarchy for the ASP.NET Razor execution pipeline. |
InitHelpers() |
Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes. |
SetViewData(ViewDataDictionary) |
Sets the view data. |