YouTube Icon

Interview Questions.

Top 39 Asp Dot Net Ajax Interview Questions - Jul 25, 2022

fluid

Top 39 Asp Dot Net Ajax Interview Questions

Q1. Why Do We Use The Xmlhttprequest Object In Ajax?

The XMLHttpRequest object is used by JavaScript to trfer XML and different text statistics among client and server. The XMLHttpRequest object allows a patron-side script to perform an HTTP request. AJAX applications use the XMLHttpRequest item in order that the browser can communicate to the server with out requiring a postback of the entire page. In earlier variations of Internet Explorer, MSXML ActiveX element is vulnerable to offer this functionality; while, Internet Explorer 7 and different browsers, consisting of Mozilla Firefox, XMLHttpRequest is not susceptible to.

Q2. What Are The Different Controls Of Asp.Internet Ajax?

ASP.NET AJAX includes the subsequent controls:

ScriptManager

ScriptManagerProxy

UpdatePanel

UpdateProgress

Timer

Q3. Describe Ajax Control Extender Toolkit?

AJAX Control Toolkit is a set of extenders which are used to extend the functionalities of the ASP.NET controls. The extenders use a block of JavaScript code to feature new and more advantageous competencies to the ASP.NET controls. AJAX Control Toolkit is a loose download available on the Microsoft web page. You want to put in this toolkit in your gadget earlier than using extenders.

Q4. Is There Any Difference Between Html And Xhtml?

Extensible HTML (XHTML) is a markup language that gives the combination expressions of HTML and XML. XHTML is a versatile markup language that permits automated processing by way of popular XML gear, which was hard in HTML.

Q5. What Is The Role Of The Scriptmanagerproxy Control?

A Web page cannot include multiple ScriptManager manage. You can use the ScriptManagerProxy manage to add scripts to other pages; but to carry out such an operation, you need to work with a master web page that incorporates the ScriptManager control. If you have most effective few pages that want to register to a script or a Web carrier, you then need to take away these pages from the ScriptManager manage and add them as character pages by means of using the ScriptManagerProxy control. If you include the scripts on the master page via the ScriptManager control, then the items get downloaded on each web page that extends the grasp web page, although they're now not necessary.

Q6. What Is The Difference Between Synchronous Postback And Asynchronous Postback?

The distinction among synchronous and asynchronous postback is as follows:

Asynchronous postback renders only the required part of the web page; while, synchronous postback renders the whole web page for any postback.

Asynchronous postback executes most effective one postback at a time, that is, if you have  buttons doing asynchronous postback, the actions can be completed one at a time; whereas, synchronous postback executes all of the actions at once.

Asynchronous postback simplest modifies the update panel that raises the postback; while, synchronous postback modifies the complete web page.

Q7. Can We Call Server-aspect Code From Javascript?

Yes, web page techniques and Web offerings are the two strategies to name the server-facet code from JavaScript.

Q8. What Are The Components Of The Asp.Net Ajax Architecture?

You can divide the ASP.NET AJAX structure into two components - AJAX purchaser structure and AJAX server architecture.

Q9. Explain The Limitations Of Ajax?

The following are the limitations of AJAX:

It is difficult to bookmark a particular nation of the application.

Function supplied in the code-behind file do now not work due to the fact the dynamic pages can not register themselves on browsers history engine routinely.

If JavaScript is disabled, then AJAX isn't always capable of perform any paintings.

Response time can be sluggish due to the fact distinct controls of a page are loaded at distinct time.

Q10. What Are The Different Ways To Pass Parameters To The Server?

We can skip parameters to the server using both the GET or POST method.

The following code snippets display the instance of both the techniques:

Get: XmlHttpObject.Open("GET", "file1.Txt", genuine);

Post: XmlHttpObject.Open("POST", "file2.Txt", actual);

Q11. Is The Ajaxcontroltoolkit.Dll File Installed In The Global Assembly Cache?

No, you have to copy this document to the Bin folder of your application.

Q12. What Does The Dynamicpopulateextender Control Do?

The DynamicPopulateExtender manipulate populates the contents of a manage dynamically. It enables you to ship an asynchronous call to the server that dynamically populates the contents of a manipulate. The DynamicPopulateExtender control replaces the contents of a control with the result of a Web carrier or page technique call.

Q13. What Does The Minimumprefixlength Property Of The Autocompleteextender Control Do?

The MinimumPrefixLength assets sets the minimal variety of characters that ought to be entered earlier than getting guidelines from the Web service.

Q14. What Are The Requirements To Run Asp.Internet Ajax Applications On A Server?

AJAX is a integrated functionality of .NET Framework 4.@Therefore, you could run an AJAX software with the aid of simply installing Microsoft Visual Studio 20@However, to apply extenders in your applications, you are required to install AJAX Control Toolkit and replica the AjaxControlToolkit.Dll report to the Bin listing of your utility.

Q15. What Is The Syntax To Create Ajax Objects?

AJAX makes use of the subsequent syntax to create an object:

var myobject = new AjaxObject("web page path");

The page direction is the URL of the Web web page containing the item which you need to call. The URL must be of the identical domain because the Web web page.

Q16. What Is The Use Of The Scriptmanager Control In Ajax?

The ScriptManager control is a core manage that performs a key position in enforcing the ASP.NET AJAX capability. It allows to apply JavaScript for the Microsoft AJAX Library. It must be noted that AJAX Library on a Web page can most effective be used if the Web page consists of the ScriptManager manage. This control uses the ScriptManager elegance to maintain the AJAX script libraries and script files. It permits for partial page rendering, Web service calls, and use of ASP.NET AJAX Client Library by means of rendering the AJAX Library scripts to the browser.

Q17. What Technologies Are Being Used In Ajax?

AJAX uses 4 technology, which might be as follows:

JavaScript

XMLHttpRequest

Document Object Model (DOM)

Extensible HTML (XHTML) and Cascading Style Sheets (CSS)

Q18. List The Different States Of Xmlhttprequest With Their Description?

The special states of the XMLHttpRequest item are as follows:

Uninitialized - Refers to the kingdom whilst the item has now not been initialized.

Open - Refers to the country when the item has been created; however, the ship feature has no longer been invoked.

Sent -Refers to the country when the send feature is invoked; however, the popularity and headers are not to be had.

Receiving - Refers to the kingdom while the system is receiving records.

Loaded - Refers to the nation while the system is completed and the entire statistics is available.

Q19. What Is The Importance Of Client-aspect Libraries?

Client-aspect libraries incorporate integrated code to make asynchronous calls over XMLHTTP. These libraries robotically deal with browser compatibility troubles. These libraries are based on a programming version similar to ASP.NET.

Q20. How Can We Get The State Of The Requested Process?

XMLHttpRequest get the modern-day kingdom of the request operation with the aid of the usage of the readyState belongings. This assets assessments the country of the item to decide if any motion need to be taken. The readyState assets uses numeric values to symbolize the kingdom.

Q21. How Can You Find Out That An Ajax Request Has Been Completed?

You can find out that an AJAX request has been finished via the usage of the readyState assets. If the value of this assets equals to 4, it me that the request has been completed and the facts is available.

Q22. Why Do We Use The Updateprogress Control In Ajax?

The UpdateProgress control is extremely associated with the UpdatePanel manage. The UpdateProgress control enables you to layout a person-pleasant interface while a Web web page consists of a number of UpdatePanel controls for partial-page rendering.

The UpdateProgress manipulate makes you aware about the repute records about the partial-page updates within the UpdatePanel control.

Q23. Explain The Updatepanel Control?

The UpdatePanel manipulate specifies the portions of a Web web page that may be updated collectively. As the UpdatePanel manage refreshes only a specific part of the Web page rather than clean the entire web page with a postback, you get greater flexibility to create wealthy and patron-centric Web applications.

Refreshing a specific a part of the Web page is referred as partial-page replace. You can upload one or greater UpdatePanel control inside the Web web page, which mechanically participates in partial-page replace without custom purchaser script. The UpdatePanel manage uses the UpdatePanel magnificence to aid the partial-web page rendering.

Q24. What Are The Extender Controls?

The extender controls makes use of a block of JavaScript code to feature new and more suitable competencies to ASP.NET. The builders can use a set of sample extender controls through a separate down load - AJAX Control Toolkit (ACT).

Q25. Can We Nest The Updatepanel Controls?

Yes, we will nest the UpdatePanel control.

Q26. Describe The Accordionextender Control?

The AccordionExtender manipulate is similar to the CollapsiblePanelExtender manipulate. It lets in you to group more than one collapsible panels in a unmarried manipulate. At the equal time, it also manages the collapsed and elevated country of every panel; therefore, increasing one panel at a time. In other words, the AccordionExtender manipulate does no longer help expanding two or greater panels simultaneously. Instead, the header templates of all of the panels are always visible so that you can click on any of them to show the hidden contents. By default, the AccordionExtender manage opens with one panel as accelerated.

Q27. Is It Possible To Use Multiple Scriptmanager Controls On A Web Page?

No, it isn't viable.

Q28. What Are The New Features Included In The Microsoft Ajax Library?

The Microsoft AJAX library is a client-based totally JavaScript library that is well suited with all current browsers and gives a lot of functionality in comparison to JavaScript. This library is launched with new capabilities and completely supports ASP.NET four.Zero'.

The new features included in the Microsoft AJAX library are as follows:

Imperative syntax - Supports simple vital syntax this is used to create and manage controls.

Script loader - Retrieves all scripts which are wanted by way of one or extra purchaser factor or manage robotically and executes the scripts in the order in which they're received.

Client data access - Supports to get admission to client facts and show via patron statistics manipulate and purchaser template.

Client datacontext - Supports study and write permission to facts from a database.

The AdoNetDataContext class - Enables you to effortlessly interact with an ADO.NET Data Services provider.

JQuery integration - Helps to access the factors for your Web pages, work with consumer-aspect occasions, permit visible consequences, and make it less complicated to apply AJAX to your programs.

Q29. What Is Json?

JSON is an abbreviation of JavaScript Object Notation. It is a safe and reliable statistics interchange format in JavaScript, which is straightforward to recognize now not handiest for the customers but also for the machines.

Q30. Explain The Step Property Of The Numericupdownextender Control?

The Step assets sets the stairs for numeric increment and decrement. The default fee is 1.

Q31. What Are The Differences Between Ajax And Javascript?

The variations between AJAX and JavaScript are given as follows:

AJAX sends request to the server and does not wait for the reaction. It plays different operations on the web page at some point of that time. JavaScript make a request to the server and waits for reaction.

AJAX does now not require the page to refresh for downloading the whole web page whilst JavaScript manages and controls a Web web page after being downloaded.

AJAX minimizes the overload on the server for the reason that script desires to request as soon as even as JavaScript posts a request that updates the script every time.

Q32. What Are The New Controls Introduced In Asp.Net Ajax Control Toolkit?

The following controls are brought with the new version of AJAX Control Toolkit:

SeaDragonExtender control - Refers to the manage that is used to deeply zoom the images. You can zoom in or out the image or the unique portion of the image through using the mouse. You also can create a menu over the Seadragon control. This control is useful while you need to investigate the picture carefully.

AsyncFileUploadExtender control - Refers to the manipulate that offers the power to upload and store the files at the server asynchronously. You can test the final results both at the server or patron side.

Q33. How Many Validation Controls Are Available In Asp.Net Ajax 4.0?

The following validation controls are available in ASP.NET AJAX 4.0:

FilteredTextBoxExtender - Enables you to use filtering to a textual content container.

MaskedEditExtender and MaskedEditValidator - Restricts a person to go into only a sure sample of characters inside the TextBox with the aid of applying a masks to the enter.

ValidatorCalloutExtender - Attaches to the ASP.NET validators in order that the mistake messages are not displayed as a easy textual content however as a balloon-style ToolTip.

NoBot - Prevents the junk mail/bot from filling the input forms automatically and makes use of the Completely Automated Public Turing take a look at to inform Computers and Hum Apart (CAPTCHA), that's a type of assignment-response test to ensure that the reaction is not generated by using the pc.

PasswordStrengthExtender - Measures the energy of the password textual content entered inside the text field through validating with the distinctive power designated parameters

Q34. Briefly Describe Asp.Net Ajax Framework?

ASP.NET AJAX Framework provides a platform wherein builders can broaden such form of packages that use the AJAX concept. The AJAX offers the gathering of technologies to create dynamic pages on the patron facet. The JavaScript requests are responsible to retrieve statistics from the server or ship records to the server. Even some processing at server additionally requires handling requests, together with looking and storing of facts. These duties are completed extra effortlessly using the AJAX Framework.

AJAX Framework is absolutely devoted to method requests. The objective of the AJAX engine is to lessen the delays that the user notices whilst acting a postback to the server. AJAX Framework allows JavaScript capabilities to send requests to server at the client side. On the other facet, it permits the server to manner the client's request, searches data, and responds the result to the browser.

Q35. What Is The Work Of The Conformonformsubmit Property In The Confirmbuttonextender Control?

The ConformOnFormSubmit property determines whether or not the affirm conversation container ought to wait while the form is submitted for show.

Q36. Describe The Situations In Which Ajax Should Not Be Used?

You need to now not use AJAX if:

You want the page to expose in a search engine, including Google, due to the fact WebCrawler does no longer execute JavaScript code.

The browser does now not aid JavaScript.

You need to create a cozy software.

Q37. Explain The Need Of The Timer Control In Ajax?

The Timer manipulate is used with an UpdatePanel manage to allow partial-page updates at a exact interval. It is commonly used whilst a periodically partial-web page replace for one or greater UpdatePanel controls is needed with out clean the complete page.

The Timer manage is a server manipulate that sets a JavaScript factor inside the Web page. The interval property of the Timer manipulate specifies time in milliseconds. Similar to the UpdatePanel manipulate, the Timer control also requires an instance of the ScriptManager manage within the Web web page. 

When the Timer manage initiates a postback, the Tick event is raised at the server for which you may offer an event handler to perform the moves while the page is submitted to the server. The Tick occasion occurs when the time targeted within the c language belongings has elapsed and the page is published at the server. You can upload one or more Timer controls on a Web web page. Usually the whole page requires best a single Timer manage; but, you can use a couple of Timer controls, if the UpdatePanel controls are being up to date at extraordinary intervals.

Q38. What Are The New Features Of Asp.Internet Ajax four.Zero?

ASP.NET four.0 AJAX includes several new functions that provide extra functionality to a consumer.

These capabilities are as follows:

Support for stay data binding.

Support for consumer-facet template rendering.

Support for declarative instantiation of patron components.

Support for the use of the observer pattern on JavaScript objects and arrays.

Support for invoking ADO.NET information offerings and records contexts.

Support for the DataView manipulate.

Q39. What Is Asp.Net Ajax?

ASP.NET AJAX, in most cases known as AJAX, is a set of extensions of ASP.NET. It is developed via Microsoft to put into effect AJAX functionalities in Web applications. ASP.NET AJAX presents a fixed of components that allow the developers to increase packages which could update simplest a targeted portion of facts without clean the complete page. The ASP.NET AJAX works with the AJAX Library that makes use of item-oriented programming (OOP) to broaden wealthy Web applications that talk with the server using asynchronous postback.




CFG