Jquery Ajax Interview Questions for Experienced - 1

Question: 1

What is the role of the Script Manager Proxy control?

A web page cannot contain more than one Script Manager Control.

You can use the Script Manager Proxy control to add scripts to other pages; however to perform such an operation, you need to work with a master page that contains the Script Manager control.

If you have only few pages that need to register to a script or a Web service, then you should remove these pages from the Script Manager control and add them as individual pages by using the Script Manager Proxy control.

If you include the scripts on the master page by the Script Manager control, then the items get downloaded on each page that extends the master page, even if they are not necessary.

Question: 2

How can we get the state of the requested process?

XMLHttpRequest get the current state of the request operation by using the ready State property.

This property checks the state of the object to determine if any action should be taken.

The ready State property uses numeric values to represent the state.

Question: 3

Explain the Update Panel Control?

The Update Panel control specifies the portions of a Web page that can be updated together.

As the Update Panel control refreshes only a selected part of the Web page instead of refreshing the entire page with a post back, you get more flexibility to create rich and client-centric web applications. Refreshing a selected part of the Web page is referred as partial-page update.

You can add one or more Update Panel control in the Web page, which automatically  participates in partial-page update without custom client script. The Update Panel control uses the Update Panel class to support the partial- page rendering.

Question: 4

How can you find out that an AJAX request has been completed?

You can find out that an AJAX request has been completed by using the ready State property. If the value of this property equals to four, it means that the request has been completed and the data is available.

Question: 5

Describe the Accordion Extender control?

The Accordion Extender control is similar to the Collapsible Panel Extender control.

It allows you to group multiple collapsible panels in a single control.

At the same time, it also manages the collapsed and expanded state of each panel; therefore, expanding one panel at a time. In other words, the Accordion Extender control does not support expanding two or more panels simultaneously.

Instead, the header templates of all the panels are always visible so that you can click on any of them to display the hidden contents. By default, the Accordion Extender control opens with one panel as expanded.

Related Questions