Class AjaxHelper<TModel>
Represents support for rendering HTML in AJAX scenarios within a strongly typed view.
public class AjaxHelper<TModel> : AjaxHelper
Type Parameters
TModelThe 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
viewContextViewContextThe view context.
viewDataContainerIViewDataContainerThe 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
viewContextViewContextThe view context.
viewDataContainerIViewDataContainerThe view data container.
routeCollectionRouteCollectionThe 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.