Contents of AJAX booklet
Chapter 1: Introduction to AJAX
This chapter is an overview of AJAX and how it works.
- How Asp.Net applications work?
- How Asp.Net AJAX applications work?
- Key Technologies behind AJAX
- Asp.Net AJAX Architecture
- Microsoft Ajax library
- Server side extensions
- How does AJAX work?
ASP.Net and ASP.Net AJAX applications work differently. In the former, browsers make a
request for a page the server then processes the web page, and returns the output to the browser. The browser interprets this output and displays the html contents for the user.
In AJAX web applications, postback is asynchronous and when data is requested from the server by the client it is loaded in the background without interfering with the
display and behavior of the existing page. AJAX allows web pages to request small bits of information from the server instead of whole pages. This capability brings with it a host of benefits - how the capability works and the list of benefits it brings is explained.
Chapter 2: Implementing AJAX
This chapter introduces a set of concepts, which can also be thought of as building blocks, using which we can get started with AJAX application development.
- AJAX Postback
- UpdatePanel control
- ScriptManager control
- Creating a simple ASP.NET page with UpdatePanel control
- Optimization Techniques for Ajax Postback
- How to control the Refresh of the UpdatePanel control
- UpdateMode property
- ChildrenAsTriggers property
- Using Triggers
- Partial Page Update - A better user experience
- ASP.Net Client page life cycle
- AJAX Client page life cycle
- Application Object
- Important Events of Application Object
- Working with PageRequest Manager Class events
AJAX allows partial page update resulting in a better user experience. It is the UpdatePanel control along with the ScriptManager which plays an important part in implementing AJAX client life cycle. Learning about these important components this is essential if you want to implement AJAX in a real world application, which is what you will do next.
Chapter 3: Programming the JounalVoucher of a web accounting application using AJAX
This chapter takes you through all the steps of programming an AJAX application using
UpdatePanel control and ScriptManager control. This chapter also teaches how to program client page life cycle events.
- Java Script used for programming the journal voucher
- Add handlers to events raised by Application Object
- Get the instance of the PageRequestManager class
- Purpose of each PageRequestManager class events in journal voucher
- Add handlers to events raised by DOM Object
- Designing the Journal voucher
- Using the ScriptManager control
- Using the Update Panel control
- Partial-page rendering with updatepanels
- Using UpdateProgress control in Jounal voucher
- HTML Code
- Application logic code (code behind file)
- Reducing the Viewstate caused by using rich controls like DatagridView in an AJAX ASP.Net page
- Server and Client side events
Chapter 4: AJAX Application Programming using Client Script
- Creating a Web Service
- Write Callback functions
- Page Methods