AJAX Interview Questions & Answers
AJAX Interview Questions & Answers
1. What is Ajax?
This technique is used to make internet faster and user friendly. It is not
a programming language.
ScriptManager
ScriptManagerProxy
UpdatePanel
UpdateProgress
Timer
5. 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.
Example –
11. Which are the two methods used for cross domain Ajax calls?
There are two methods used to transfer data between the two more more
security domains:
CORS – Cross Origin Resource Sharing and it works with the HTTP
web browsers
JSONP – JSON with Padding which works with the HTTP GET and on
legacy browsers
12. What are all the technologies used by Ajax?
JavaScript
XMLHttpRequest
Document Object Model (DOM)
Extensible HTML (XHTML)
Cascading Style Sheets (CSS)
13. What are all the features of Ajax?
AJAX Javascript
AJAX sends request to the server and does not wait for the
response. It performs other operations on the page during JavaScript make a request to the server and
that time response
AJAX does not require the page to refresh for downloading JavaScript manages and controls a Web pag
the whole page downloaded
AJAX minimizes the overload on the server since the script JavaScript posts a request that updates the
needs to request once time
The extender controls uses a block of JavaScript code to add new and
enhanced capabilities to ASP.NET.
AJAX Control Toolkit is one of the extenders that are used to extend or
add the functionalities of the ASP.NET controls. The extenders use a
block of JavaScript code to add new and enhanced capabilities to the
ASP.NET controls.
22. How can you find out that an AJAX request has been completed?
ReadyState property is used to check whether AJAX request has been
completed. If the property is equal to four, then the request has been
completed and data is available.
Yes, if you plan to develop new AJAX functionality for your web
application.
JSUnit is the client side javascript code used as part of JUnit. JSUnit has
been used for Ajax code.
Fiddler for IE
Firebug for Mozilla.
28. How can we cancel the XMLHttpRequest in AJAX?
Script Manager helps manage the client side script of AJAX. Script
Manager acts as a mediator as AJAX depends on JavaScript. Every page
that uses AJAX has a Script Manager to enable AJAX libraries.
When Ajax calls are sent through plain text and it may lead to know
the database details
Inserting scripts can also be possible and attackers can easily
penetrate into the system
37. How can we handle concurrent requests?
Yes, we can use nested update panel in Ajax. Update panels can be
nested to have more control over the Page Refresh.
Synchronous Postback
Asynchronous Postback