AjaxHelper AjaxHelper AjaxHelper Class

Definition

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

public class AjaxHelper
type AjaxHelper = class
Public Class AjaxHelper
Inheritance
AjaxHelperAjaxHelperAjaxHelper
Derived

Constructors

AjaxHelper(ViewContext, IViewDataContainer) AjaxHelper(ViewContext, IViewDataContainer) AjaxHelper(ViewContext, IViewDataContainer)

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

AjaxHelper(ViewContext, IViewDataContainer, RouteCollection) AjaxHelper(ViewContext, IViewDataContainer, RouteCollection) AjaxHelper(ViewContext, IViewDataContainer, RouteCollection)

Initializes a new instance of the AjaxHelper class by using the specified view context, view data container, and route collection.

Properties

GlobalizationScriptPath GlobalizationScriptPath GlobalizationScriptPath

Gets or sets the root path for the location to use for globalization script files.

RouteCollection RouteCollection RouteCollection

Gets the collection of URL routes for the application.

ViewBag ViewBag ViewBag

Gets the ViewBag.

ViewContext ViewContext ViewContext

Gets the context information about the view.

ViewData ViewData ViewData

Gets the current view data dictionary.

ViewDataContainer ViewDataContainer ViewDataContainer

Gets the view data container.

Methods

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

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

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