Latest 50+ Ajax Interview Questions and Answers - 2

Question: 6

What are the different ways to pass parameters to the server?

We can pass parameters to the server using either the GET or POST method. The following code snippets show the example of both the methods:

Get:

 Xml HttpObject.Open (“GET”, “test.txt”, true);

Post:

Xml HttpObject.Open (“POST”, “test.txt”, true);

Question: 7

What are the new features of ASP.NET AJAX 4.0?

ASP.NET 4.0 AJAX includes several new features that provide more functionality to a user. These features are as follows:

Support for live data binding

Support for client-side template rendering

Support for declarative instantiation of components

Support for using the observer pattern on JavaScript objects and arrays

Support for invoking ADO.NET data services and data contexts

Support for the Data View control

Question: 8

What is the syntax to create AJAX objects?

AJAX uses the following syntax to create an object:

Var my object= new Ajax object (“page path”);

 The page path is the URL of the Web Page containing the object that you want to call. The URL must be of the same domain as the Web page.

Question: 9

Is there any difference between HTML and XHTML?

Extensible HTML (XHTML) is a markup language that provides the mixture expressions of HTML and XML.

XHTML is a flexible markup language that enables automated processing by standard XML tools, which was difficult in HTML.

Question: 10

What is the use of the Script Manager control in AJAX?

The Script Manager control is a core control that performs a key role in implementing the ASP.NET AJAX functionality.

It helps to use JavaScript for the Microsoft AJAX Library.

It should be noted that AJAX Library on a Web page can only be used if the Web Page contains the Script Manager control.

This control makes use of the Script Manager class to maintain the AJAX script libraries and script files.

It allows for partial page rendering, Web service calls, and use of ASP.NET AJAX Client Library by rendering the AJAX Library scripts to the browser.

Related Questions