AjaxHelper<TModel> Class

Definition

Represents support for rendering HTML in AJAX scenarios within a strongly typed view.

public class AjaxHelper<TModel> : System.Web.Mvc.AjaxHelper
type AjaxHelper<'Model> = class
    inherit AjaxHelper
Public Class AjaxHelper(Of TModel)
Inherits AjaxHelper

Type Parameters

TModel

The type of the model.

Inheritance
AjaxHelper<TModel>

Constructors

AjaxHelper<TModel>(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.

AjaxHelper<TModel>(ViewContext, IViewDataContainer)

Initializes a new instance of the AjaxHelper<TModel> class by using the specified view context and view data container.

Properties

RouteCollection

Gets the collection of URL routes for the application.

(Inherited from AjaxHelper)
ViewBag

Gets the ViewBag.

ViewContext

Gets the context information about the view.

(Inherited from AjaxHelper)
ViewData

Gets the strongly typed version of the view data dictionary.

ViewDataContainer

Gets the view data container.

(Inherited from AjaxHelper)

Methods

JavaScriptStringEncode(String)

Serializes the specified message and returns the resulting JSON-formatted string.

(Inherited from AjaxHelper)

Extension Methods

ActionLink(AjaxHelper, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, String, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the URL to the specified action method; when the action link is clicked, the action method is invoked asynchronously by using JavaScript.

BeginForm(AjaxHelper, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, AjaxOptions)

Writes an opening <form> tag to the response.

BeginRouteForm(AjaxHelper, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response using the specified routing information.

BeginRouteForm(AjaxHelper, String, Object, AjaxOptions)

Writes an opening <form> tag to the response using the specified routing information.

BeginRouteForm(AjaxHelper, String, AjaxOptions)

Writes an opening <form> tag to the response using the specified routing information.

BeginRouteForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response using the specified routing information.

BeginRouteForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response using the specified routing information.

GlobalizationScript(AjaxHelper, CultureInfo)

Returns an HTML script element that contains a reference to a globalization script that defines the specified culture information.

GlobalizationScript(AjaxHelper)

Returns an HTML script element that contains a reference to a globalization script that defines the culture information.

RouteLink(AjaxHelper, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, Object, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, Object, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, Object, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions, Object)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Returns an anchor element that contains the virtual path for the specified route values; when the link is clicked, a request is made to the virtual path asynchronously by using JavaScript.

Applies to