1. What is Ajax?
Ajax is abbreviated as Asynchronous Javascript and XML. It is new technique used to create better, faster and more interactive web systems or applications. Ajax uses asynchronous data transfer between the Browser and the web server.
This technique is used to make internet faster and user friendly. It is not a programming language.
2. What is AJAX event?
Ajax requests produce a wide variety of distinctive occasions that you can subscribe to. Here’s a full listing of the activities and in what order they are triggered.
There are 2 types of events in Ajax
Local Events: Local Events are callbacks that you can subscribe to inside the Ajax request object.
Global Events: Global events are triggered on the document, calling any handlers who may be listening.
Example of Local Events:
$.ajax({
beforeSend: function(){
},
complete: function(){
}
});
Example of Global Events:
$.ajax({
url: "bestinterviewquestion.html",
global: false,
});
3. How many types of triggers are present in update panel?
There are two types of triggers used in update panel:
PostBackTrigger – This works as full postback and it cannot work asynchronously
AsyncPostBackTrigger – Partial post back asynchronously
4. What are all the controls of Ajax?
Following are the controls of Ajax:
ScriptManager
ScriptManagerProxy
UpdatePanel
UpdateProgress
Timer
5. How can I improve my Ajax performance?
To improve AJAX call performance, follow these steps:
Reduce the AJAX request numbers.
Wisely elect the event on which AJAX request triggers.
Appropriately use GET requests.
Reduce the amount of data transmitted.
Secure data using Caching.
6. Explain the types of active states in Ajax?
There are five types of active states available in AJAX. Here are those:
request not initialized – ready state 0
server connection established – ready state 1
request received – ready state 2
processing request – ready state 3
request finished, and the response is ready – ready state 4
7. What is the name of the DLL that contains Ajax control tool kit?
Ajaxcontroltoolkit.dll is the DLL used for Ajax control tool kit and it can be downloaded from the internet. It can be added in the tool box or copied directly in the bin folder.