Introduction to Ajax
What happens without Ajax? The normal ASP. NET will refresh the current page every time it executes a server-side method, such as the time it takes to implement the display. The downside of refreshing faces every time: page refresh interrupts user action, slows down, and increases traffic pressure on the server. If there is no Ajax, in the process of Youku watching the video, if you click on the "Top, step", comments, comments page, pages will be refreshed, the video will be interrupted.
AJAX (Asynchronous JavaScript and XML, asynchronous JavaScript and XML) is a technique for page-local asynchronous refreshes. Use Ajax to send requests to the server and get the data returned by the server and update it to the interface, not the entire page refresh, but instead use JavaScript in the HTML page to create the XMLHttpRequest object to make a request to the server and get the returned data. Just like the JavaScript version of WebClient, the page is made up of XMLHttpRequest to make HTTP requests and get the server's return data so that the page does not refresh. XMLHttpRequest is the core object of Ajax