Class WebViewPage
Represents the properties and methods that are needed in order to render a view that uses ASP.NET Razor syntax.
public abstract class WebViewPage : WebPageBase, IViewDataContainer
- Inheritance
-
WebViewPage
- Implements
- Derived
Constructors
WebViewPage()
Initializes a new instance of the WebViewPage class.
protected WebViewPage()
Properties
Ajax
Gets or sets the AjaxHelper object that is used to render HTML using Ajax.
public AjaxHelper<object> Ajax { get; set; }
Property Value
- AjaxHelper<object>
The AjaxHelper object that is used to render HTML using Ajax.
Context
Gets the System.Web.HttpContext object that is associated with the page.
public override HttpContextBase Context { get; set; }
Property Value
- HttpContextBase
The System.Web.HttpContext object that is associated with the page.
Html
Gets or sets the HtmlHelper object that is used to render HTML elements.
public HtmlHelper<object> Html { get; set; }
Property Value
- HtmlHelper<object>
The HtmlHelper object that is used to render HTML elements.
Model
Gets the Model property of the associated ViewDataDictionary object.
public object Model { get; }
Property Value
- object
The Model property of the associated ViewDataDictionary object.
TempData
Gets the temporary data to pass to the view.
public TempDataDictionary TempData { get; }
Property Value
- TempDataDictionary
The temporary data to pass to the view.
Url
Gets or sets the URL of the rendered page.
public UrlHelper Url { get; set; }
Property Value
- UrlHelper
The URL of the rendered page.
ViewBag
Gets the view bag.
public dynamic ViewBag { get; }
Property Value
- dynamic
The view bag.
ViewContext
Gets or sets the information that is used to render the view.
public ViewContext ViewContext { get; set; }
Property Value
- ViewContext
The information that is used to render the view, which includes the form context, the temporary data, and the view data of the associated view.
ViewData
Gets or sets a dictionary that contains data to pass between the controller and the view.
public ViewDataDictionary ViewData { get; set; }
Property Value
- ViewDataDictionary
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.
protected override void ConfigurePage(WebPageBase parentPage)
Parameters
parentPage
WebPageBaseThe parent page.
ExecutePageHierarchy()
Runs the page hierarchy for the ASP.NET Razor execution pipeline.
public override void ExecutePageHierarchy()
InitHelpers()
Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes.
public virtual void InitHelpers()
SetViewData(ViewDataDictionary)
Sets the view data.
protected virtual void SetViewData(ViewDataDictionary viewData)
Parameters
viewData
ViewDataDictionaryThe view data.