The largest Interview Solution Library on the web


Interview Questions
« Previous | 0 | 1 | 2 | 3 | 4 | Next »

41.What are the components of the ASP.NET Ajax Client Library?

Following components are used in Ajax client library:

  • Component Layer
  • Core Services Layer
  • Browser Compatibility Layer

42.What are the controls of the Script Management group?

The controls of script Management group are:

  • ScriptManager
  • ScriptManagerProxy

43.What are all the different data types that JSON supports?

JSON supports following data types

  • String
  • Number
  • Boolean
  • Array
  • Object
  • Null

44.What are the goals of Ajax?

The basic goals of ASP.NET Ajax are:

  • Reduced web server hits
  • Reduced Network load
  • Interactive user interface
  • Platform and architecture neutrality
  • Support for both synchronous and asynchronous communication
  • Provide a server- and client-side framework

45.What is the difference between proxied and proxyless calls in AJAX?

Proxied calls are made through stub objects which can be called from PHP classes on the JavaScript side in AJAX.
Proxyless calls are made using utility JavaScript functions like HTML_AJAX.replace() and HTML_AJAX.append() in AJAX.

46.How many types of ready states in Ajax?

There are four ready states in Ajax:

  • Initialization
  • Request
  • Process
  • Ready

47.What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?

Following are the functions:

  • RegisterClientScriptBlock – The script is specified as a string parameter.
  • RegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.
  • RegisterClientScriptResource – specifies Resource name in an assembly. The source attribute is automatically populated with a URL by a call to an HTTP handler that retrieves the named script from the assembly.

48.Which request is better, Get or Post?

AJAX requests should use an HTTP GET request where the data does not change for a given URL requested.
An HTTP POST should be used when state is updated on the server. This is highly recommended for a consistent web application architecture

49.What are the limitations of Ajax?

An Ajax Web Application tends to confuse end users if the network bandwidth is slow and there is no full postback running.

50.Why Ajax is used?

Ajax is used to get the data from server without refreshing the current page.

51.When we can use Ajax? Give Few Examples?

Ajax can be used to get the data from Server when you don't want to refresh the page. See Below Scenario:

  • In Registration Page, check the username is available OR NOT.
  • In Registration page, check email address is already taken OR NOT.
  • In Product Listing page, when user click on "Next" under pagination, you won't want to show the next page data without refreshing the page.

52.What files need to install to use Ajax in Website?

Initially, no files required to use the ajax in your website. But to manage your ajax call in better way, you can use JS library which world used to use.

53.What js library are available to use the Ajax?

Following are few JS library which are used for Ajax

  • JQuery
  • MooTools
  • Prototype
  • YUI Library
  • Backbone js

54.What Browsers support Ajax?

Today, All the Browser support ajax. Following are minium version of browser which support Ajax.

  • Internet Explorer 5.0 and up,
  • Opera 7.6 and up,
  • Netscape 7.1 and up,
  • Firefox 1.0 and up,
  • Safari 1.2 and up,

55.What is XMLHttpRequest?

XMLHttpRequest is an API available to web browser scripting languages (i.e. JavaScript).
It is used to send HTTP/HTTPS requests to a web server and load the server's response into the script.

56.How we can send data to server using Ajax?

We can use GET OR POST Method to send data.

57.What is Asynchronous in Ajax?

We can set the Asynchronous value as true OR false.
Async=true
Ajax request execute independently, Its response can come earlier than other request which is execute later .
Async=true
Ajax request does not execute independently, Its response can comes when earlier request finished.

58.What do the different readystates in XMLHttpRequest?

Following are different stats(0-4) of ready state in XMLHttpRequest

  • Ajax Request not initialized
  • Ajax Request's server connection established
  • Ajax Request received
  • Ajax Request processing
  • request finished and response is ready.

59.What are advantage of AJax?

  • Its faster as it load only required content.
  • More user friendly.
  • One page application possible due to Ajax.
  • Reduce the loading of page.

60.What are disadvantage of Ajax?

It does not crawl to search Engine.

« Previous | 0 | 1 | 2 | 3 | 4 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com