Table of Contents

Class AjaxHelper<TModel>

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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 ViewContext

The view context.

viewDataContainer IViewDataContainer

The 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 ViewContext

The view context.

viewDataContainer IViewDataContainer

The view data container.

routeCollection RouteCollection

The 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.