ASP.NET AJAX interview question

37. 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: XmlHttpObject.Open(“GET”, “file1.txt”, true);
Post: XmlHttpObject.Open(“POST”, “file2.txt”, true);
38. What are the extender controls?

The extender controls uses a block of JavaScript code to add new and enhanced capabilities to ASP.NET. The developers can use a set of sample extender controls through a separate download – AJAX Control Toolkit (ACT).

39. Describe the AccordionExtender control.

The AccordionExtender control is similar to the CollapsiblePanelExtender 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 AccordionExtender 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 AccordionExtender control opens with one panel as expanded.

Leave a Reply0

Your email address will not be published.