What is Unobtrusive AJAX?

1 votes
133 views
Mishra Ji asked 11-Jan-2019 in programming by Mishra Ji

What is Unobtrusive AJAX?

1 Answer

0 votes
Sanat Shukla answered 28-Jan-2019 by Sanat Shukla
The idea behind Unobtrusive AJAX is that AJAX behavior is attached to form and anchor elements via HTML5 data-* attributes, instead of binding click event handlers in script blocks. Into the old MVC, these properties can be generated from Html helpers: Ajax.BeginForm and Ajax.ActionLink and then setting some AjaxOptions. Those particular helpers are not available in ASP.NET Core, but you can add the custom attributes directly to tag helpers instead.
In another word, we know that Ajax is a lightweight technology (like jquery) and its allow web pages to exchange data asynchronously with the server in order to update specific portions of the page rather reloading its entire content. It will enhance the responsiveness and performance of the web applications. In ASP.NET MVC affords multiple approaches to implement this behavior by requesting or submitting data to partial pages. Into this article, we will talk about two approaches to accomplish: Unobstrusive Ajax and JQuery Ajax.
1).
What is Unobtrusive AJAX?
2).
What is Unobtrusive AJAX?
3).
What is Unobtrusive AJAX?