What are AJAX Helpers?

AJAX Helpers are used to create AJAX enabled elements like as Ajax enabled forms and links which performs request asynchronously. AJAX Helpers are extension methods of AJAXHelper class which exist in System.Web.Mvc namespace.

AJAX HTML Element Example
AJAX-enabled link based on action/controller @Ajax.ActionLink(“Load Products”, “GetProducts”, new AjaxOptions {UpdateTargetId = “Products-container”, HttpMethod = “GET” })
Output: <a data-ajax=”true” data-ajax-method=”GET” data-ajax-mode=”replace” data-ajax-update=”#Products-container” href=”/Home/GetProducts”>Load Products</a>

Tagged , . Bookmark the permalink.

Leave a Reply