AJAX stands for Asynchronous JavaScript and XML, it is a mechanism to interact with server using XMLHttpRequest object in JavaScript.
ASP.NET Ajax is the .NET version of Ajax implementation especially for ASP.NET applications.
ASP.NET Ajax enables us to send partial post back request and receive response that helps the application runs faster and become more responsive.
The partial post back means that if we need to update a certain part of the entire page, we send only partial requests (data that is needed to get the response for that part) and get the response only to update that specific part of the page as against the entire page.
Below diagram shows the number of event fires when a normal post back happens and ASP.NET Ajax post back happens.
Technologies of ASP.NET AJAX
ASP.NET Ajax has comes with two technologies- Client-Side technologies
- Server-Side technologies
Client-Side technologies
The client-side technologies know about sending requests and populating the response to the correct location. It contains client side JavaScript framework that runs in the client’s machine (browser). This is responsible to communicate with server using asynchronous requests. All these functionalities are stored in the client side library.The client library contains mainly five components as listed above. Apart from above, there is browser integration component that works in between to send the request and placing the response in the browser window.
Client Side Script Library
- Controls and Components
- Component Model and UI Framework
- Base Class Library
- Script Core
- Browser Compatibility
Client side technologies also provide facilities to interact with JavaScript in .NET Style and provides events and methods similar to ASP.NET server side events and methods.
Server-Side technologies
The server-side technologies know about receiving request from client, processing and sending response back.In ASP.NET 4.0, ASP.NET AJAX Server Extension sits on top of ASP.NET 4.0 Framework, WCF and ASP.NET Web Services.
0 comments:
Post a Comment