Ajax-enabled Hosting Server Controls
One of the strength of the ASP.NET programming model is the ability to encapsulate the markup of a portion of the page and render it dynamically. The rendering logic is located inside an object called a Server Control. The responsibility of this object is simple: it determines which HTML will be written to the response stream, based on decisions made at runtime. This means that the generated markup can vary based on user preferences, environment configuration, and business logic. The dynamic generation of the HTML of a web page is the main philosophy behind server technologies like ASP.NET.
1 – When using Ajax, a web application can request only the content that needs to be updated, thus drastically reducing bandwidth usage and load time.
2 – The web application will be operated faster or more responsive, even if the application has not changed on the server side.
3 – Ajax enable to reduce connections to the server, since scripts and style sheets only have to be requested once.
Disadvantages of ASP.NET Ajax
1 – Clicking the browser’s “back” button may not return the user to an earlier state of the Ajax-enabled page.
2 – Dynamic web page updates also caused some troubles for a user to bookmark a particular state of the application.
3 – Ajax opens up another attack vector for malicious code that web developers might not expected for.
ASP.NET AJAX Framework Advantages
Let us see the advantages of the ASP.NET AJAX framework from these 3 categories:
1) Ajax component frameworks
However, some component frameworks require the developer to have extensive HTML/CSS/Ajax experience and to do cross-browser testing.
Users can get the benefits from the following Ajax components frameworks:
1 – Customization APIs and related technology
2 – More programmatic control and flexibility
3 – Advance skinning facilities and structure
4 – Allow users to create new components based on other components
2) “Indirect” Ajax Framework
Examples of Indirect Ajax frameworks include Google Web Toolkit, and RubyJS, here are some of the benefits of “indirect” Ajax framework:
1 – The build in high-level web widget sets of the Indirect Ajax frameworks have far more in common with Desktop widgets.
2 – Able to create code that takes care of browser incompatibilities at run-time.
3 – A ASP.NET AJAX developer can program the web front-end in the same programming language as that which the server-side code is written.
4 – The ASP.NET AJAX developer can have the flexibility to create their own Ajax framework using programming concepts.
3) Ajax frameworks which is Driven by Server
In this Ajax framework, components are created and manipulated on the server using a server-side programming language. From this effort, we can see that changes to the server component model are reflected on the client automatically because all the communication between the users and servers are being done based on Ajax techniques, server-side code manipulates a server-side component model.
Ajax frameworks that handle presentation completely within the browser may offer greater responsiveness if they handle more user interactions without server involvement. In a server-driven model, some user interface interactions can react slower than normal expected time.
With the emerging and integration of ASP.NET Ajax technology with the latest ASP.NET 3.5 framework, it is become clear that more and more webmasters and users choose to fully utilize this technology to aid them in the application development process.