Class AjaxHelper<TModel>
Represents support for rendering HTML in AJAX scenarios within a strongly typed view.
public class AjaxHelper<TModel> : AjaxHelper
Type Parameters
TModel
The type of the model.
- Inheritance
-
AjaxHelper<TModel>
- Inherited Members
- Extension Methods
Constructors
AjaxHelper(ViewContext, IViewDataContainer)
Initializes a new instance of the AjaxHelper<TModel> class by using the specified view context and view data container.
public AjaxHelper(ViewContext viewContext, IViewDataContainer viewDataContainer)
Parameters
viewContext
ViewContextThe view context.
viewDataContainer
IViewDataContainerThe view data container.
AjaxHelper(ViewContext, IViewDataContainer, RouteCollection)
Initializes a new instance of the AjaxHelper<TModel> class by using the specified view context, view data container, and URL route collection.
public AjaxHelper(ViewContext viewContext, IViewDataContainer viewDataContainer, RouteCollection routeCollection)
Parameters
viewContext
ViewContextThe view context.
viewDataContainer
IViewDataContainerThe view data container.
routeCollection
RouteCollectionThe URL route collection.
Properties
ViewBag
Gets the ViewBag.
public dynamic ViewBag { get; }
Property Value
- dynamic
The ViewBag.
ViewData
Gets the strongly typed version of the view data dictionary.
public ViewDataDictionary<TModel> ViewData { get; }
Property Value
- ViewDataDictionary<TModel>
The strongly typed data dictionary of the view.