{
"iq":[{"id":"1",
"q":"What is Ajax?",
"answer":"Ajax is abbreviated as Asynchronous Javascript and XML. It is new technique used to create better, faster and more interactive web systems or applications. Ajax uses asynchronous data transfer between the Browser and the web server."
},
{"id":"2",
"q":"What are Ajax applications? ",
"answer":"Browser based applications and platform independent applications are used by Ajax."
},
{"id":"3",
"q":"What are the security issues with AJAX?",
"answer":"The Ajax calls are sent in plain text format, this might lead to insecure database access. The data gets stored on the clients browser, thus making the data available to anyone. It also allows monitoring browsing sessions by inserting scripts."
},
{"id":"4",
"q":"What technologies are being used in AJAX?",
"answer":"AJAX uses four technologies, which are as follows:\n\nJavaScript\n\nXMLHttpRequest\n\nDocument Object Model (DOM)\n\nExtensible HTML (XHTML) and Cascading Style Sheets (CSS) "
},
{"id":"5",
"q":"Why do we use the XMLHttpRequest object in AJAX? ",
"answer":"The XMLHttpRequest object is used by JavaScript to transfer XML and other text data between client and server. The XMLHttpRequest object allows a client-side script to perform an HTTP request. AJAX applications use the XMLHttpRequest object so that the browser can communicate to the server without requiring a postback of the entire page. In earlier versions of Internet Explorer, MSXML ActiveX component is liable to provide this functionality; whereas, Internet Explorer 7 and other browsers, such as Mozilla Firefox, XMLHttpRequest is not liable to."
},
{"id":"6",
"q":"How can we get the state of the requested process?",
"answer":"XMLHttpRequest get the current state of the request operation by using the readyState property. This property checks the state of the object to determine if any action should be taken. The readyState property uses numeric values to represent the state. "
},
{"id":"7",
"q":"What are the different controls of ASP.NET AJAX?",
"answer":"ASP.NET AJAX includes the following controls:\n\nScriptManager\n\nScriptManagerProxy\n\nUpdatePanel\n\nUpdateProgress\n\nTimer "
},
{"id":"8",
"q":"Describe the formats and protocols used by AJAX.",
"answer":"Ajax uses HTTP’s GET or POST. AJAX also uses XMLHttpRequest protocol for requesting to the web server.\n\nAJAX uses JSON format to communicate between client and server. UED or URL encoded data formats can also be used."
},
{"id":"9",
"q":"Describe the formats and protocols used by AJAX. ",
"answer":"Ajax uses HTTP’s GET or POST. AJAX also uses XMLHttpRequest protocol for requesting to the web server.\n\nAJAX uses JSON format to communicate between client and server. UED or URL encoded data formats can also be used."
},
{"id":"10",
"q":"What are Difference between Server-Side AJAX framework and Client-side AJAX framework?",
"answer":"-The server-side framework facilitates the developers to develop Ajax functionality, without gaining much knowledge of JavaScript.\n\n- This framework supports server controls and components as well as the drag and drop features.\n\n- This framework is usually preferred when you required to rapidly ajaxify an asp.net web page. The drawback is that a round trip will take place to the server to execute a client-side action.\n\n- The Client-Side Framework allows you to build web applications with rich user-interactivity as that of a desktop application.\n\n- It includes a set of JavaScript libraries, which is not dependent from ASP.NET. The functionalities of this library are enhanced in every release."
},
{"id":"11",
"q":"What is an UpdatePanel Control?",
"answer":"An UpdatePanel control is a cover for server side controls which is to be partial postbacked on ajax enabled page.\n\nAll controls included in the UpdatePanel will be partial postbacked. Below is a small example of using an UpdatePanel.\n\n<asp:ScriptManager runat=”server”>\n\n</ asp:ScriptManager>\n\n<asp:UpdatePanel runat=”server”>\n\n<ContentTemplate>\n\n<asp:Button runat=”server”></asp:Button>\n\n</ContentTemplate>\n\n</asp:UpdatePanel>\n\nOn clicking the button the page will be updated partially. There won’t be a full postback by the web page.\n\nIn this way the content beyond the update panel won’t be posted back to the server.\n\nThe contents in the updatepanel will be refreshed only."
},
{"id":"12",
"q":" Which is the purpose for using the ScriptManager?",
"answer":"The purposes of ScriptManager in ASP.NET AJAX are explained as following.\n\n- It enables the Client-script functionality of the Microsoft AJAX Library and it also supports a custom script that we can send to the browser.\n\n- It supports Partial-page rendering, which enable us to make partial page update without a postback.\n\n- The ASP.NET AJAX UpdatePanel, Timer and UpdateProgress controls work with ScriptManager control to support partial-page rendering.\n\n- It supports JavaScript proxy classes for Web services that provide client script which enable us to access Web services by exposing them as strongly typed objects.\n\n- It provides JavaScript classes to deal with ASP.NET authentication and profile application services."
},
{"id":"13",
"q":"List the different states of XMLHttpRequest with their description.",
"answer":"The different states of the XMLHttpRequest object are as follows:\n\n1) Uninitialized : It is the state in which the object has not been initialized.\n\n2) Open: It is the state when the object has been created but the send function is not invoked.\n\n3) Sent: It is the state when the send function is invoked but the status and headers are not available.\n\n4) Receiving: It is the state when the data is received by the process.\n\n5) Loaded: It is the state when the procedure is completed and the data is available.."
},
{"id":"14",
"q":"What is the significance of ASP.NET routing?",
"answer":" ASP.NET MVC uses ASP.NET routing, to map incoming browser requests to controller action methods. ASP.NET Routing makes use of route table. Route table is created when your web application first starts. The route table is present in the Global.asax file."
},
{"id":"15",
"q":"Explain the limitations of AJAX.?",
"answer":"It is difficult to bookmark a particular state of the application.\n\nFunction provided in the code-behind file do not work because the dynamic pages cannot register themselves on browsers history engine automatically.\n\nIf JavaScript is disabled, then AJAX is not able to perform any work.\n\nResponse time may be slow because different controls of a page are loaded at different time. "
},
{"id":"16",
"q":"What does the DynamicPopulateExtender control do?",
"answer":"The DynamicPopulateExtender control populates the contents of a control dynamically. It enables you to send an asynchronous call to the server that dynamically populates the contents of a control. The DynamicPopulateExtender control replaces the contents of a control with the result of a Web service or page method call. "
},
{"id":"17",
"q":"What role of #&& in querystring?",
"answer":"# is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string. "
},
{"id":"18",
"q":"How to control the duration of an Ajax request?",
"answer":"AsyncPostBackTimeout property is used to control the duration of Ajax request. Deafult value of this property is 90 seconds.\n\nExample –\n\n<asp:ScriptManager runat=”server” id=”sample” AsyncPostBackTimeout=”40”/>"
},
{"id":"19",
"q":"What is Ispostback? When we will use Not Ispostback? ",
"answer":" IsPostBack: It is the property of the Page class which is used to determine whether the page is posted back from the client. When: Whenever we don’t want to execute the code within the load event, when the page load event fires then we will use (!IsPostBack). "
},
{"id":"20",
"q":" What is AutopostBack? when we will set Autopostback=true?",
"answer":"Autopostback is the property of the control. If you want a control to postback automatically when an event is raised, you need to set the AutoPostBackproperty of the control to True. "
},
{"id":"21",
"q":"Which are the two methods used for cross domain Ajax calls?",
"answer":"There are two methods used to transfer data between the two more more security domains:\n\nCORS – Cross Origin Resource Sharing and it works with the HTTP web browsers\n\nJSONP – JSON with Padding which works with the HTTP GET and on legacy browsers "
},
{"id":"22",
"q":" What are all the technologies used by Ajax? ",
"answer":"JavaScript\n\nXMLHttpRequest\n\nDocument Object Model (DOM)\n\nExtensible HTML (XHTML)\n\nCascading Style Sheets (CSS) "
},
{"id":"23",
"q":"What is JSON in Ajax?",
"answer":"JSON is abbreviated as JavaScript Object Notation.JSON is a safe and reliable data interchange format in JavaScript, which is easy to understand for both users and machines."
},{"id":"24",
"q":"What are the components of the ASP.NET AJAX architecture? ",
"answer":"AJAX client architecture\n\nAJAX server architecture"
},{"id":"25",
"q":"What are the extender controls?",
"answer":"The extender controls uses a block of JavaScript code to add new and enhanced capabilities to ASP.NET."
},{"id":"26",
"q":"What is AJAX Control Extender Toolkit?",
"answer":"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.\n\nAJAX Control Extender Toolkit is a free download from site."
},{"id":"27",
"q":"What is AJAX Framework?",
"answer":"ASP.NET AJAX is a free framework to implement Ajax in asp.net web applications. It is used to quickly creating efficient and interactive Web applications that work across all browsers. "
},{"id":"28",
"q":"Is javascript knowledge is required to do Ajax?",
"answer":"Yes, if you plan to develop new AJAX functionality for your web application."
},{"id":"29",
"q":" How can you test the Ajax code?",
"answer":"JSUnit is the client side javascript code used as part of JUnit. JSUnit has been used for Ajax code."
},{"id":"30",
"q":" Is Ajax said to be a technology platform or is it an architectural style?",
"answer":"Ajax supports both technology and as architectural style."
},{"id":"31",
"q":"How can AJAX applications be debugged? ",
"answer":"Fiddler for IE\n\nFirebug for Mozilla."
},{"id":"32",
"q":"What type of response we can get in Ajax Response?",
"answer":"text data\n\nhtml data\n\nJSON data\n\nXML data "
},{"id":"33",
"q":"How do you know that an AJAX request has completed?",
"answer":"If readyState's value is 4 means its completed."
},{"id":"34",
"q":"Describe the formats and protocols used by AJAX",
"answer":"-The client web page is creates the XmlHttpRequest, and thus the connection from the web page to an application on the server.\n\n- Part of that connection determines how the response can be produced to the client code – via the use of a “callback” routine.\n\n- The callback routine is called multiple times which come with a status code which indicates the reason for the invocation.\n\n- When a request can be successfully completed by the server application, a response should also be produced."
},{"id":"35",
"q":"How does one call a JavaScript function from the AJAX code?",
"answer":"- Ajax is a form of JavaScript, which uses XML Http Request objects which pass action event parameters to a method named “open”.\n\n- In AJAX we can’t track the requests and responses in any order.\n\n- ”XMLHttpRequest.open” is the function which uses action events as Parameters in URL.\n\n- While “XMLHttp Request.send” sends the Request object either synchronously or asynchronously which depend on whether the option for the synchronous version is true or false."
},{"id":"36",
"q":"What is the syntax to create AJAX objects?",
"answer":"AJAX uses the following syntax to create an object:\n\nvar myobject = new AjaxObject(\"page path\");\n\nThe 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."
},{"id":"37",
"q":"difference between HTML and XHTML?",
"answer":"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. "
},{"id":"38",
"q":"What are the requirements to run ASP.NET AJAX applications on a server?",
"answer":"AJAX is a built-in functionality of .NET Framework 4.0. Therefore, you can run an AJAX application by just installing Microsoft Visual Studio 2010. However, to use extenders in your applications, you are required to install AJAX Control Toolkit and copy the AjaxControlToolkit.dll file to the Bin directory of your application."
},{"id":"39",
"q":" What is the use of the ScriptManager control in AJAX?",
"answer":"The ScriptManager 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 ScriptManager control. This control makes use of the ScriptManager 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."
},{"id":"40",
"q":"How can you find out that an AJAX request has been completed?",
"answer":"You can find out that an AJAX request has been completed by using the readyState property. If the value of this property equals to four, it means that the request has been completed and the data is available."
},{"id":"41",
"q":"What are the new controls introduced in ASP.NET AJAX Control Toolkit? ",
"answer":"SeaDragonExtender control - Refers to the control that is used to deeply zoom the images. You can zoom in or out the image or the particular portion of the image by using the mouse. You can also create a menu over the Seadragon control. This control is helpful when you want to analyze the image closely.\n\nAsyncFileUploadExtender control - Refers to the control that provides the facility to upload and save the files on the server asynchronously. You can check the outcome either at the server or client side."
},{"id":"42",
"q":"Is the AjaxControlToolkit.dll file installed in the Global Assembly Cache?",
"answer":"No, you have to copy this file to the Bin folder of your application."
},{"id":"43",
"q":"Can we call server-side code from JavaScript?·",
"answer":"Yes, page methods and Web services are the two techniques to call the server-side code from JavaScript."
},{"id":"44",
"q":"List the different states of XMLHttpRequest with their description.",
"answer":"Uninitialized\n\nOpen\n\nSent\n\nReceiving\n\nLoaded"
},{"id":"45",
"q":"Can we nest the UpdatePanel controls? ",
"answer":"Yes, we can nest the UpdatePanel control."
},{"id":"46",
"q":" How can we handle concurrent requests?",
"answer":"Javascript functions should be written to handle concurrent requests and call back function can be passed as a parameter. Those parameters are passed to AjaxInteraction(URL, callback) object. "
},{"id":"47",
"q":" What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?",
"answer":"RegisterClientScriptBlock – The script is specified as a string parameter.\n\nRegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.\n\nRegisterClientScriptResource – 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."
},{"id":"48",
"q":" How can we handle exception handling in Ajax?",
"answer":"ErrorTemplate which is the child tag of Script Manager is used to handle exception handling in Ajax."
},{"id":"49",
"q":"What are the components of the ASP.NET Ajax Client Library? ",
"answer":"Component Layer\n\nCore Services Layer\n\nBrowser Compatibility Layer "
},{"id":"50",
"q":"Which request is better, Get or Post? ",
"answer":"AJAX requests should use an HTTP GET request where the data does not change for a given URL requested.\n\nAn HTTP POST should be used when state is updated on the server. This is highly recommended for a consistent web application architecture."
}
]
}
"iq":[{"id":"1",
"q":"What is Ajax?",
"answer":"Ajax is abbreviated as Asynchronous Javascript and XML. It is new technique used to create better, faster and more interactive web systems or applications. Ajax uses asynchronous data transfer between the Browser and the web server."
},
{"id":"2",
"q":"What are Ajax applications? ",
"answer":"Browser based applications and platform independent applications are used by Ajax."
},
{"id":"3",
"q":"What are the security issues with AJAX?",
"answer":"The Ajax calls are sent in plain text format, this might lead to insecure database access. The data gets stored on the clients browser, thus making the data available to anyone. It also allows monitoring browsing sessions by inserting scripts."
},
{"id":"4",
"q":"What technologies are being used in AJAX?",
"answer":"AJAX uses four technologies, which are as follows:\n\nJavaScript\n\nXMLHttpRequest\n\nDocument Object Model (DOM)\n\nExtensible HTML (XHTML) and Cascading Style Sheets (CSS) "
},
{"id":"5",
"q":"Why do we use the XMLHttpRequest object in AJAX? ",
"answer":"The XMLHttpRequest object is used by JavaScript to transfer XML and other text data between client and server. The XMLHttpRequest object allows a client-side script to perform an HTTP request. AJAX applications use the XMLHttpRequest object so that the browser can communicate to the server without requiring a postback of the entire page. In earlier versions of Internet Explorer, MSXML ActiveX component is liable to provide this functionality; whereas, Internet Explorer 7 and other browsers, such as Mozilla Firefox, XMLHttpRequest is not liable to."
},
{"id":"6",
"q":"How can we get the state of the requested process?",
"answer":"XMLHttpRequest get the current state of the request operation by using the readyState property. This property checks the state of the object to determine if any action should be taken. The readyState property uses numeric values to represent the state. "
},
{"id":"7",
"q":"What are the different controls of ASP.NET AJAX?",
"answer":"ASP.NET AJAX includes the following controls:\n\nScriptManager\n\nScriptManagerProxy\n\nUpdatePanel\n\nUpdateProgress\n\nTimer "
},
{"id":"8",
"q":"Describe the formats and protocols used by AJAX.",
"answer":"Ajax uses HTTP’s GET or POST. AJAX also uses XMLHttpRequest protocol for requesting to the web server.\n\nAJAX uses JSON format to communicate between client and server. UED or URL encoded data formats can also be used."
},
{"id":"9",
"q":"Describe the formats and protocols used by AJAX. ",
"answer":"Ajax uses HTTP’s GET or POST. AJAX also uses XMLHttpRequest protocol for requesting to the web server.\n\nAJAX uses JSON format to communicate between client and server. UED or URL encoded data formats can also be used."
},
{"id":"10",
"q":"What are Difference between Server-Side AJAX framework and Client-side AJAX framework?",
"answer":"-The server-side framework facilitates the developers to develop Ajax functionality, without gaining much knowledge of JavaScript.\n\n- This framework supports server controls and components as well as the drag and drop features.\n\n- This framework is usually preferred when you required to rapidly ajaxify an asp.net web page. The drawback is that a round trip will take place to the server to execute a client-side action.\n\n- The Client-Side Framework allows you to build web applications with rich user-interactivity as that of a desktop application.\n\n- It includes a set of JavaScript libraries, which is not dependent from ASP.NET. The functionalities of this library are enhanced in every release."
},
{"id":"11",
"q":"What is an UpdatePanel Control?",
"answer":"An UpdatePanel control is a cover for server side controls which is to be partial postbacked on ajax enabled page.\n\nAll controls included in the UpdatePanel will be partial postbacked. Below is a small example of using an UpdatePanel.\n\n<asp:ScriptManager runat=”server”>\n\n</ asp:ScriptManager>\n\n<asp:UpdatePanel runat=”server”>\n\n<ContentTemplate>\n\n<asp:Button runat=”server”></asp:Button>\n\n</ContentTemplate>\n\n</asp:UpdatePanel>\n\nOn clicking the button the page will be updated partially. There won’t be a full postback by the web page.\n\nIn this way the content beyond the update panel won’t be posted back to the server.\n\nThe contents in the updatepanel will be refreshed only."
},
{"id":"12",
"q":" Which is the purpose for using the ScriptManager?",
"answer":"The purposes of ScriptManager in ASP.NET AJAX are explained as following.\n\n- It enables the Client-script functionality of the Microsoft AJAX Library and it also supports a custom script that we can send to the browser.\n\n- It supports Partial-page rendering, which enable us to make partial page update without a postback.\n\n- The ASP.NET AJAX UpdatePanel, Timer and UpdateProgress controls work with ScriptManager control to support partial-page rendering.\n\n- It supports JavaScript proxy classes for Web services that provide client script which enable us to access Web services by exposing them as strongly typed objects.\n\n- It provides JavaScript classes to deal with ASP.NET authentication and profile application services."
},
{"id":"13",
"q":"List the different states of XMLHttpRequest with their description.",
"answer":"The different states of the XMLHttpRequest object are as follows:\n\n1) Uninitialized : It is the state in which the object has not been initialized.\n\n2) Open: It is the state when the object has been created but the send function is not invoked.\n\n3) Sent: It is the state when the send function is invoked but the status and headers are not available.\n\n4) Receiving: It is the state when the data is received by the process.\n\n5) Loaded: It is the state when the procedure is completed and the data is available.."
},
{"id":"14",
"q":"What is the significance of ASP.NET routing?",
"answer":" ASP.NET MVC uses ASP.NET routing, to map incoming browser requests to controller action methods. ASP.NET Routing makes use of route table. Route table is created when your web application first starts. The route table is present in the Global.asax file."
},
{"id":"15",
"q":"Explain the limitations of AJAX.?",
"answer":"It is difficult to bookmark a particular state of the application.\n\nFunction provided in the code-behind file do not work because the dynamic pages cannot register themselves on browsers history engine automatically.\n\nIf JavaScript is disabled, then AJAX is not able to perform any work.\n\nResponse time may be slow because different controls of a page are loaded at different time. "
},
{"id":"16",
"q":"What does the DynamicPopulateExtender control do?",
"answer":"The DynamicPopulateExtender control populates the contents of a control dynamically. It enables you to send an asynchronous call to the server that dynamically populates the contents of a control. The DynamicPopulateExtender control replaces the contents of a control with the result of a Web service or page method call. "
},
{"id":"17",
"q":"What role of #&& in querystring?",
"answer":"# is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string. "
},
{"id":"18",
"q":"How to control the duration of an Ajax request?",
"answer":"AsyncPostBackTimeout property is used to control the duration of Ajax request. Deafult value of this property is 90 seconds.\n\nExample –\n\n<asp:ScriptManager runat=”server” id=”sample” AsyncPostBackTimeout=”40”/>"
},
{"id":"19",
"q":"What is Ispostback? When we will use Not Ispostback? ",
"answer":" IsPostBack: It is the property of the Page class which is used to determine whether the page is posted back from the client. When: Whenever we don’t want to execute the code within the load event, when the page load event fires then we will use (!IsPostBack). "
},
{"id":"20",
"q":" What is AutopostBack? when we will set Autopostback=true?",
"answer":"Autopostback is the property of the control. If you want a control to postback automatically when an event is raised, you need to set the AutoPostBackproperty of the control to True. "
},
{"id":"21",
"q":"Which are the two methods used for cross domain Ajax calls?",
"answer":"There are two methods used to transfer data between the two more more security domains:\n\nCORS – Cross Origin Resource Sharing and it works with the HTTP web browsers\n\nJSONP – JSON with Padding which works with the HTTP GET and on legacy browsers "
},
{"id":"22",
"q":" What are all the technologies used by Ajax? ",
"answer":"JavaScript\n\nXMLHttpRequest\n\nDocument Object Model (DOM)\n\nExtensible HTML (XHTML)\n\nCascading Style Sheets (CSS) "
},
{"id":"23",
"q":"What is JSON in Ajax?",
"answer":"JSON is abbreviated as JavaScript Object Notation.JSON is a safe and reliable data interchange format in JavaScript, which is easy to understand for both users and machines."
},{"id":"24",
"q":"What are the components of the ASP.NET AJAX architecture? ",
"answer":"AJAX client architecture\n\nAJAX server architecture"
},{"id":"25",
"q":"What are the extender controls?",
"answer":"The extender controls uses a block of JavaScript code to add new and enhanced capabilities to ASP.NET."
},{"id":"26",
"q":"What is AJAX Control Extender Toolkit?",
"answer":"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.\n\nAJAX Control Extender Toolkit is a free download from site."
},{"id":"27",
"q":"What is AJAX Framework?",
"answer":"ASP.NET AJAX is a free framework to implement Ajax in asp.net web applications. It is used to quickly creating efficient and interactive Web applications that work across all browsers. "
},{"id":"28",
"q":"Is javascript knowledge is required to do Ajax?",
"answer":"Yes, if you plan to develop new AJAX functionality for your web application."
},{"id":"29",
"q":" How can you test the Ajax code?",
"answer":"JSUnit is the client side javascript code used as part of JUnit. JSUnit has been used for Ajax code."
},{"id":"30",
"q":" Is Ajax said to be a technology platform or is it an architectural style?",
"answer":"Ajax supports both technology and as architectural style."
},{"id":"31",
"q":"How can AJAX applications be debugged? ",
"answer":"Fiddler for IE\n\nFirebug for Mozilla."
},{"id":"32",
"q":"What type of response we can get in Ajax Response?",
"answer":"text data\n\nhtml data\n\nJSON data\n\nXML data "
},{"id":"33",
"q":"How do you know that an AJAX request has completed?",
"answer":"If readyState's value is 4 means its completed."
},{"id":"34",
"q":"Describe the formats and protocols used by AJAX",
"answer":"-The client web page is creates the XmlHttpRequest, and thus the connection from the web page to an application on the server.\n\n- Part of that connection determines how the response can be produced to the client code – via the use of a “callback” routine.\n\n- The callback routine is called multiple times which come with a status code which indicates the reason for the invocation.\n\n- When a request can be successfully completed by the server application, a response should also be produced."
},{"id":"35",
"q":"How does one call a JavaScript function from the AJAX code?",
"answer":"- Ajax is a form of JavaScript, which uses XML Http Request objects which pass action event parameters to a method named “open”.\n\n- In AJAX we can’t track the requests and responses in any order.\n\n- ”XMLHttpRequest.open” is the function which uses action events as Parameters in URL.\n\n- While “XMLHttp Request.send” sends the Request object either synchronously or asynchronously which depend on whether the option for the synchronous version is true or false."
},{"id":"36",
"q":"What is the syntax to create AJAX objects?",
"answer":"AJAX uses the following syntax to create an object:\n\nvar myobject = new AjaxObject(\"page path\");\n\nThe 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."
},{"id":"37",
"q":"difference between HTML and XHTML?",
"answer":"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. "
},{"id":"38",
"q":"What are the requirements to run ASP.NET AJAX applications on a server?",
"answer":"AJAX is a built-in functionality of .NET Framework 4.0. Therefore, you can run an AJAX application by just installing Microsoft Visual Studio 2010. However, to use extenders in your applications, you are required to install AJAX Control Toolkit and copy the AjaxControlToolkit.dll file to the Bin directory of your application."
},{"id":"39",
"q":" What is the use of the ScriptManager control in AJAX?",
"answer":"The ScriptManager 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 ScriptManager control. This control makes use of the ScriptManager 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."
},{"id":"40",
"q":"How can you find out that an AJAX request has been completed?",
"answer":"You can find out that an AJAX request has been completed by using the readyState property. If the value of this property equals to four, it means that the request has been completed and the data is available."
},{"id":"41",
"q":"What are the new controls introduced in ASP.NET AJAX Control Toolkit? ",
"answer":"SeaDragonExtender control - Refers to the control that is used to deeply zoom the images. You can zoom in or out the image or the particular portion of the image by using the mouse. You can also create a menu over the Seadragon control. This control is helpful when you want to analyze the image closely.\n\nAsyncFileUploadExtender control - Refers to the control that provides the facility to upload and save the files on the server asynchronously. You can check the outcome either at the server or client side."
},{"id":"42",
"q":"Is the AjaxControlToolkit.dll file installed in the Global Assembly Cache?",
"answer":"No, you have to copy this file to the Bin folder of your application."
},{"id":"43",
"q":"Can we call server-side code from JavaScript?·",
"answer":"Yes, page methods and Web services are the two techniques to call the server-side code from JavaScript."
},{"id":"44",
"q":"List the different states of XMLHttpRequest with their description.",
"answer":"Uninitialized\n\nOpen\n\nSent\n\nReceiving\n\nLoaded"
},{"id":"45",
"q":"Can we nest the UpdatePanel controls? ",
"answer":"Yes, we can nest the UpdatePanel control."
},{"id":"46",
"q":" How can we handle concurrent requests?",
"answer":"Javascript functions should be written to handle concurrent requests and call back function can be passed as a parameter. Those parameters are passed to AjaxInteraction(URL, callback) object. "
},{"id":"47",
"q":" What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?",
"answer":"RegisterClientScriptBlock – The script is specified as a string parameter.\n\nRegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.\n\nRegisterClientScriptResource – 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."
},{"id":"48",
"q":" How can we handle exception handling in Ajax?",
"answer":"ErrorTemplate which is the child tag of Script Manager is used to handle exception handling in Ajax."
},{"id":"49",
"q":"What are the components of the ASP.NET Ajax Client Library? ",
"answer":"Component Layer\n\nCore Services Layer\n\nBrowser Compatibility Layer "
},{"id":"50",
"q":"Which request is better, Get or Post? ",
"answer":"AJAX requests should use an HTTP GET request where the data does not change for a given URL requested.\n\nAn HTTP POST should be used when state is updated on the server. This is highly recommended for a consistent web application architecture."
}
]
}
