Вы находитесь на странице: 1из 3

What are the disadvantages of AJAX?

Answer: These are the disadvantages: 1) AJAX is dependent on Javascript. If there is some Javascript problem with the browser or in the OS,your AJAX functionality may not work. 2) Search engines generally do not index Javascript present in web pages. AJAX can be problematic in Search engines as it uses Javascript for most of its parts. 3) source code written for AJAX is easily human readable. 4) Debugging is difficult. We have often to use additional Javascript code for that. 5) Data of all requests is URL-encoded. It increases the size of the request. It can cause problem while Paginating through GridView if there is a huge data. 6)Slow and unreliable network connection. 7)Problem with browser back button when using AJAX enabled pages.

What is the difference between layers and tiers

Layers refer to logical seperation of code. Logical layers help you organise your code better. For example an application can have the following layers. 1)Presentation Layer or UI Layer 2)Business Layer or Business Logic Layer 3)Data Access Layer or Data Layer The aboove three layers reside in their own projects, may be 3 projects or even more. When we compile the projects we get the respective layer DLL. So we have 3 DLL's now. Depending upon how we deploy our application, we may have 1 to 3 tiers. As we now have 3 DLL's, if we deploy all the DLL's on the same machine, then we have only 1 physical tier but 3 logical layers. If we choose to deploy each DLL on a seperate machine, then we have 3 tiers and 3 layers. So, Layers are a logical separation and Tiers are a physical separation. We can also say that, tiers are the physical deployment of layers.

What is the difference between DataReader and DataAdapter? 1. Data Reader is read only forward only and much faster than Data Adapter. 2. If you use Data Reader you have to open and close connection explicitly where as if you use Data Adapter the connection is automatically opened and closed. 3. Data Reader is connection oriented whereas Data Adapter is disconnected

What is the disadvantage of LINQ over stored procedures?


Answer: The disadvantage with LINQ is, it is not a precompiled statement where as stored procedures are precompiled. In case of LINQ the queries need to be compile before the execution. So according to this, I can say stored procedures are faster in performance as compared to LINQ.

How LINQ is beneficial than Stored Procedures? There are couple of advantage of LINQ over stored procedures. 1. Debugging - It is really very hard to debug the Stored procedure but as LINQ is part of .NET, you can use visual studio's debugger to debug the queries. 2. Deployment - With stored procedures, we need to provide an additional script for stored procedures but with LINQ everything gets complied into single DLL hence deployment becomes easy. 3. Type Safety - LINQ is type safe, so queries errors are type checked at compile time. It is really good to encounter an error when compiling rather than runtime exception!

What are the steps you need to follow to use jQuery in ASP.Net project? Answer: It's really simple. One just need to add reference of javascript file(.js). Go to Jquery.com and download the latest version of jQuery. When download is completed, there is a "jQuery-1.3.2.js" in the folder. Include this file
<script src="_scripts/jQuery-1.3.2.js" type="text/javascript"></script>

How is body onload() function is different from document.ready() function used in jQuery?

Вам также может понравиться