AJAX helpers are a collection of utility methods and classes in ASP.NET MVC that make it easier to integrate AJAX (Asynchronous JavaScript and XML) capabilities into web applications. These tools make it easier to send asynchronous requests from client-side code to server-side activities and handle responses smoothly.
ASP.NET MVC provides unobtrusive Ajax based on jQuery. The unobtrusive Ajax approach means that you design your Ajax features using helper methods rather than adding blocks of code to your pages.
The AjaxOptions class offers attributes that allow you to set callbacks at various phases of the AJAX request life cycle. The AjaxOptions class for AJAX helpers provides the following properties:
Web browsers by default limit AJAX requests to the same origin to avoid security issues such as XSS attacks. However, if you need to use external APIs (such as Twitter or Google), you must allow JSONP requests or Cross-Origin Resource Sharing. ASP.NET MVC does not support them by default, therefore you'll need to configure and code to enable them.
AjaxOptions contains a namespace called System.Web.Mvc.Ajax. It also contains an assembly called System.Web.Mvc.dll. It represents the options for launching Ajax scripts in an ASP.NET MVC application. It has its constructor, AjaxOptions(), which creates a new instance of the AjaxOptions class.
AjaxOptions Methods apply to MVC 5.0. The AjaxOptions Class contains a method named AjaxOptions.The ToUnobtrusiveHtmlAttributes() method returns the Ajax settings as a collection of HTML attributes for unobtrusive JavaScript.