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

Constructors

AjaxHelper<TModel>(ViewContext, IViewDataContainer) AjaxHelper<TModel>(ViewContext, IViewDataContainer) AjaxHelper<TModel>(ViewContext, IViewDataContainer)

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

AjaxHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection) AjaxHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection) 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.

Properties

RouteCollection RouteCollection RouteCollection

Gets the collection of URL routes for the application.

(Inherited from AjaxHelper)
ViewBag ViewBag ViewBag

Gets the ViewBag.

ViewContext ViewContext ViewContext

Gets the context information about the view.

(Inherited from AjaxHelper)
ViewData ViewData ViewData

Gets the strongly typed version of the view data dictionary.

ViewDataContainer ViewDataContainer ViewDataContainer

Gets the view data container.

(Inherited from AjaxHelper)

Methods

JavaScriptStringEncode(String) JavaScriptStringEncode(String) JavaScriptStringEncode(String)

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

(Inherited from AjaxHelper)

Extension Methods

ActionLink(AjaxHelper, String, String, Object, AjaxOptions) ActionLink(AjaxHelper, String, String, Object, AjaxOptions) 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, Object, AjaxOptions, Object) ActionLink(AjaxHelper, String, String, Object, AjaxOptions, Object) 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, String, Object, AjaxOptions) ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions) 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, Object, AjaxOptions, Object) ActionLink(AjaxHelper, String, String, String, Object, AjaxOptions, Object) 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, String, String, String, Object, AjaxOptions, Object) ActionLink(AjaxHelper, String, String, String, String, String, String, Object, AjaxOptions, Object) 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>) ActionLink(AjaxHelper, String, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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) ActionLink(AjaxHelper, String, String, String, AjaxOptions) 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) ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions) 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, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) ActionLink(AjaxHelper, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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, AjaxOptions) ActionLink(AjaxHelper, String, String, AjaxOptions) 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) ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions) 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.

ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) ActionLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

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

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, AjaxOptions) BeginForm(AjaxHelper, AjaxOptions) BeginForm(AjaxHelper, AjaxOptions)

Writes an opening <form> tag to the response.

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

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

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

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

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

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

BeginRouteForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions) BeginRouteForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions) BeginRouteForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

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

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

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

GlobalizationScript(AjaxHelper) GlobalizationScript(AjaxHelper) GlobalizationScript(AjaxHelper)

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

GlobalizationScript(AjaxHelper, CultureInfo) GlobalizationScript(AjaxHelper, CultureInfo) GlobalizationScript(AjaxHelper, CultureInfo)

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

RouteLink(AjaxHelper, String, Object, AjaxOptions) RouteLink(AjaxHelper, String, Object, AjaxOptions) 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, Object, AjaxOptions, Object) RouteLink(AjaxHelper, String, Object, AjaxOptions, Object) 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, String, Object, AjaxOptions) RouteLink(AjaxHelper, String, String, Object, AjaxOptions) 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, Object, AjaxOptions, Object) RouteLink(AjaxHelper, String, String, Object, AjaxOptions, Object) 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, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) RouteLink(AjaxHelper, String, String, String, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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) RouteLink(AjaxHelper, String, String, AjaxOptions) 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, AjaxOptions, IDictionary<String,Object>) RouteLink(AjaxHelper, String, String, AjaxOptions, IDictionary<String,Object>) 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) RouteLink(AjaxHelper, String, String, AjaxOptions, Object) 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, RouteValueDictionary, AjaxOptions) RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions) 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, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) RouteLink(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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, RouteValueDictionary, AjaxOptions) RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions) 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.

RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) RouteLink(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>) 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.

Applies to