Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained

Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 50%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 50%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • A rapid and practical guide to including AJAX features in your .NET applications
  • Learn practical development strategies and techniques
  • Go through a case study that demonstrates the theory you learned throughout the book.

Book Details

Language : English
Paperback : 300 pages [ 235mm x 191mm ]
Release Date : July 2007
ISBN : 1847190987
ISBN 13 : 9781847190987
Author(s) : Bogdan Brinzarea, Cristian Darie
Topics and Technologies : All Books, Microsoft Development , Web Development, Enterprise, Microsoft, .NET

Table of Contents

Chapter 1: AJAX and ASP.NET
Chapter 2: AJAX Foundations
Chapter 3: Object-Oriented JavaScript
Chapter 4: Introducing the Microsoft AJAX Library
Chapter 5: OOP with the Microsoft AJAX Library
Chapter 6: Creating Client Components
Chapter 7: Case Study: Timer and EnhancedTextBox
Chapter 8: Debugging Tools and Techniques
Appendix A: Microsoft AJAX Library Reference
  • Chapter 1: AJAX and ASP.NET
    • The Big Picture
      • AJAX and Web 2.0
    • Building Websites Since 1990
      • HTTP and HTML
      • ASP.NET and Other Server-Side Technologies
      • JavaScript and Other Client-Side Technologies
      • What's Missing?
    • The World of AJAX
      • What is AJAX Made Of?
      • Uses and Misuses of AJAX
      • Introducing ASP.NET AJAX
      • Resources and Tools
    • Setting Up Your Environment
      • Installing IIS
      • Installing Visual Web Developer
      • Creating a Folder for Your Project
        • Preparing the Atlas Application in Windows Vista
        • Preparing the Atlas Web Application in Windows XP
    • Hello World!
      • Time for Action—Quickstart AJAX
      • What Just Happened?
  • Summary
  • Chapter 2: AJAX Foundations
    • JavaScript and the Document Object Model
      • Time for Action—Playing with JavaScript and the DOM
      • What Just Happened
  • JavaScript Events and the DOM
    • Time for Action—Using JavaScript Events and the DOM
    • What Just Happened?
  • Even More DOM
    • Time for Action—Even More DOM
    • What Just Happened?
  • JavaScript, DOM, and CSS
    • Time for Action—Working with CSS and JavaScript
    • What Just Happened?
  • The XMLHttpRequest Object
    • Creating the XMLHttpRequest Object
    • Initiating Server Requests
    • Handling the Server Response
      • Time for Action—Making Asynchronous Calls with XMLHttpRequest
      • What Just Happened?
  • Summary
  • Chapter 3: Object-Oriented JavaScript
    • Concepts of Object-Oriented Programming
      • Objects and Classes
      • Encapsulation
      • Inheritance
      • Polymorphism
    • Object-Oriented JavaScript
      • JavaScript Functions
        • Functions as Variables
        • Anonymous Functions
        • Inner Functions and JavaScript Closures
      • JavaScript Classes
        • Class Diagrams
        • C# and JavaScript Classes
        • Referencing External Functions
        • Thinking of Objects as Associative Arrays
        • Creating Object Members on the Fly
        • Private Members
        • Prototypes
      • The JavaScript Execution Context
        • var x, this.x, and x
        • Using the Right Context
      • Inheritance using Closures and Prototypes
        • Inheritance Using Closures
        • Inheritance Using Prototyping
    • Introducing JSON
    • Summary
  • Chapter 4: Introducing the Microsoft AJAX Library
    • Microsoft AJAX Library Components
    • Asynchronous Communication
      • Client Asynchronous Communication
      • Server Asynchronous Communication
    • Working with WebRequest
      • Time for Action—WebRequest
      • What Just Happened?
  • More WebRequests
    • Time for Action—More WebRequest
    • What Just Happened?
  • Summary
  • Classes in Microsoft AJAX Library
    • The Type, Namespaces, and Events
      • Time for Action—Creating and Using the Person Class
      • What Just Happened?
    • Inheritance
      • Time for Action—Implementing Inheritance using Microsoft
      • What Just Happened?
    • AJAX Library
    • Enumerations
    • Interfaces
      • Ti me for action—Inheritance and Interfaces
      • What Just Happened?
    • OOP Recommendations
  • Summary
  • Chapter 6: Creating Client Components
    • DOM Elements and Events
    • Components, Behaviors, and Controls
      • Creating Components
      • Disposing of Components
      • Sys.Application and Client Page Life-Cycle Events
        • The init Event
        • The load Event
        • The pageLoad() Method
        • The pageUnload() Method
        • The unload Event
      • Behaviors
      • Controls
      • Quicksteps for Creating Custom Client Components
    • Summary
  • Using the Components
  • Summary
  • Chapter 8: Debugging Tools and Techniques
    • AJAX Debugging Overview
    • Debugging and Tracing with Microsoft AJAX Library
      • MicrosoftAjax.debug.js
      • Anonymous Functions vs. Pseudo-Named Functions
      • Parameters Validation
    • Debugging in Internet Explorer
      • Web Development Helper
      • Internet Explorer Developer Toolbar
      • Other tools
    • Debugging in Firefox
      • Firebug
      • Venkman JavaScript Debugger
      • Web Developer
    • Fiddler
    • Testing
    • Summary
  • JavaScript Base Type Extensions
    • Array Class
    • Boolean Class
    • Date Class
    • Error Class
      • create() Method
    • Number Class
    • Object Class
    • RegExp Class
    • String Class
  • Sys Namespace
    • Sys.Application Class
    • Sys.ApplicationLoadEventArgs Class
    • Sys.Browser Class
    • Sys.CancelEventArgs Class
    • Sys.Component Class
    • Sys.CultureInfo Class
    • Sys.Debug Class
    • Sys.EventArgs Class
    • Sys.EventHandlerList Class
    • Sys.IContainer Interface
    • Sys.IDisposable Interface
    • Sys.INotifyDisposing Interface
    • Sys.INotifyPropertyChange Interface
    • Sys.PropertyChangedEventArgs Class
    • Sys.ScriptLoader Class
    • Sys.ScriptLoaderTask Class
    • Sys.StringBuilder Class
  • Sys.UI Namespace
    • Sys.UI.Behavior Class
    • Sys.UI.Bounds Class
    • Sys.UI.Control Class
    • Sys.UI.DomElement Class
      • getElementById() Method ($get)
      • addCssClass() Method
      • containsCssClass() Method
      • removeCssClass() Method
      • toggleCssClass() Method
      • getLocation() Method
      • getBounds() Method
      • setLocation() Method
    • Sys.UI.DomEvent Class
    • Sys.UI.Key Class
      • addHandler() Method ($addHandler)
      • addHandlers() Method ($addHandlers)
      • clearHandlers() Method ($clearHandlers)
      • preventDefault() Method
      • removeHandler() Method
      • stopPropagation() Method
    • Sys.UI.MouseButton Enumeration
    • Sys.UI.Point Class
    • Sys.UI.VisibilityMode Enumeration
  • Sys.Net Namespace
    • Sys.Net.NetworkRequestEventArgs Class
    • Sys.Net.WebRequest Class
    • Sys.Net.WebRequestExecutor Class
    • Sys.Net.WebRequestManager Class
    • Sys.Net.XmlHttpExecutor Class
  • Sys.Serialization Namespace
    • Sys.Serialization.JavaScriptSerializer Class
      • serialize() Method
      • deserialize() Method

Bogdan Brinzarea

Bogdan has a strong background in Computer Science holding a Master and Bachelor Degree at the Automatic Control and Computers Faculty of the Politehnica University of Bucharest, Romania and also an Auditor diploma at the Computer Science department at Ecole Polytechnique, Paris, France.

His main interests cover a wide area from embedded programming, distributed and mobile computing and new web technologies. Currently, he is employed as an Alternative Channels Specialist at Banca Romaneasca, Member of National Bank of Greece where he is responsible for the Internet Banking project and coordinates other projects related to security applications and new technologies to be implemented in the banking area.

Cristian Darie

Cristian Darie is a software engineer with experience in a wide range of modern technologies, and the author of numerous books, including his popular AJAX and PHP tutorial by Packt, his ASP.NET E-Commerce tutorial, by APress and his forthcoming SEO tutorial for PHP developers by Wrox Press. Cristian is studying distributed application architectures for his PhD, and is getting involved with various commercial and research projects. When not planning to buy Google, he enjoys his bit of social life. If you want to say "hi", you can reach Cristian through his personal website at

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 1 submitted: last submission 14 Mar 2013

Errata type: Other | Page number: 124-125

The result described in point (8) at the top of page 124 refers to Figure 4.6, however the correct image is shown in Figure 4.7. The result described in point (9) uses the example text "John Doe" and refers to Figure 4.7, but it should use the example text "Yoda" and refer to figure 4.6. In summary, Figures 4.6 and 4.7 are currently the wrong way around, and point (9) should instruct the reader to enter the text "Yoda" instead of "John Doe".


Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained +    jMonkeyEngine 3.0 Beginner's Guide =
50% Off
the second eBook
Price for both: $37.50

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

This book teaches you, through step-by-step exercises, the following essential topics:

  • How to create basic AJAX applications using JavaScript, CSS, DOM, and the XMLHttpRequest object. 
  • Understand the object-oriented model of JavaScript.
  • Learn what the Microsoft AJAX Library is made of.
  • Understand how the Microsoft AJAX Library extends the object-oriented capabilities of JavaScript by adding support for namespaces, interfaces, events, properties, and an improved set of base classes. 
  • Implement JavaScript classes and interfaces based on Visual Studio class diagrams
  • Create client components, controls and behaviors, by extending existing elements of the page, registering events, and utilizing the page life cycle. 
  • Go through a case study that demonstrates the theory you learned throughout the book.

In Detail

Microsoft AJAX Library Essentials is a practical reference for the client-side library of the ASP.NET AJAX Framework 1.0, and a tutorial for the underlying technologies and techniques required to use the library at its full potential. The main goal of this book is to get you comfortable with the Microsoft AJAX Library, a huge set of functions that can be used for developing powerful client-side functionality.

Beginning with a hands-on tour of the basic technologies associated with AJAX, JavaScript, XMLHttpRequest, JSON, and the DOM, you'll move on to a crash course in the Microsoft AJAX tools. You will learn, through numerous step-by-step exercises, how to create basic AJAX applications, how the object-based programming model of JavaScript works, and how Microsoft AJAX Library extends this model. You'll understand the architecture of the Microsoft AJAX components, how they all fit together, and exactly what they can do for you. Then you will learn how to use the Microsoft AJAX Library in your web projects, and a detailed case study will walk you through creating your own customized client components.

At every stage of your journey, you'll be able to try out examples to illuminate the theory, and consolidate your understanding. In addition to learning about the client and server controls, you'll also see how to handle errors and debug your AJAX applications.

To complement your new found skills, the book ends with a visual reference of the Microsoft AJAX Library namespaces and classes, including diagrams and quick explanations for all the classes mentioned in the book, providing an invaluable reference you will turn to again and again.

A practical tutorial to using Microsoft AJAX to enhance the user experience of your ASP.NET web applications covering the most up to date versions of the AJAX tools.

Book Reviews

Granville Barnett: "I really enjoyed this book. Its unique selling point is the fact that it solely covers client-side scripting with, and without the Microsoft AJAX Library."

Milan Negovan: "It is has something for those who have barely any experience with Microsoft AJAX, as well as for seasoned ASP.NET developers. Most books fail when they address such a broad audience, but given the narrow, specialized topic, this book performs just fine."

Jason Ong: "This book serves as a nice introduction for ASP.NET developers who are just starting out developing client-side components on the ASP.NET AJAX Framework. For ASP.NET developers who are already using pre-built Microsoft AJAX client-side components in their projects, this book will help provide a better understanding of the inner workings of these components."


This book is a practical tutorial to get you confident and comfortable working with the Microsoft AJAX suite. Packed with step-by-step examples and detailed explanations of how the examples work, this book is the ideal first step into the exciting world of AJAX in ASP.NET

Who this book is for

This book has been written for ASP.NET developers entering the world of the ASP.NET AJAX Framework, and for existing ASP.NET AJAX developers looking for a more detailed tutorial on the client-side of the framework: the Microsoft AJAX Library.

Microsoft AJAX Library Essentials


Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software