Class WebViewPage<TModel>
Represents the properties and methods that are needed in order to render a view that uses ASP.NET Razor syntax.
public abstract class WebViewPage<TModel> : WebViewPage, IViewDataContainer
Type Parameters
TModel
The type of the view data model.
- Inheritance
-
WebViewPage<TModel>
- Implements
- Inherited Members
Constructors
WebViewPage()
Initializes a new instance of the WebViewPage<TModel> class.
protected WebViewPage()
Properties
Ajax
Gets or sets the AjaxHelper object that is used to render HTML markup using Ajax.
public AjaxHelper<TModel> Ajax { get; set; }
Property Value
- AjaxHelper<TModel>
The AjaxHelper object that is used to render HTML markup using Ajax.
Html
Gets or sets the HtmlHelper object that is used to render HTML elements.
public HtmlHelper<TModel> Html { get; set; }
Property Value
- HtmlHelper<TModel>
The HtmlHelper object that is used to render HTML elements.
Model
Gets the Model property of the associated ViewDataDictionary object.
public TModel Model { get; }
Property Value
- TModel
The Model property of the associated ViewDataDictionary object.
ViewData
Gets or sets a dictionary that contains data to pass between the controller and the view.
public ViewDataDictionary<TModel> ViewData { get; set; }
Property Value
- ViewDataDictionary<TModel>
A dictionary that contains data to pass between the controller and the view.
Methods
InitHelpers()
Initializes the AjaxHelper, HtmlHelper, and UrlHelper classes.
public override void InitHelpers()
SetViewData(ViewDataDictionary)
Sets the view data.
protected override void SetViewData(ViewDataDictionary viewData)
Parameters
viewData
ViewDataDictionaryThe view data.