Home / AJAX

Page History: Microsoft Ajax Content Delivery Network

Compare Page Revisions

« Older Revision - Back to Page History - Newer Revision »

Page Revision: 2009/12/04 19:09

The Microsoft Ajax content delivery network (CDN) enables you to easily add ASP.NET Ajax Library and jQuery scripts to your Web applications. You can start using the ASP.NET Ajax Library or jQuery simply by adding a <script> tag to your page that points to Ajax.microsoft.com.

By taking advantage of the Microsoft Ajax CDN, you can significantly improve the performance of your Ajax applications. The contents of the Microsoft Ajax CDN are cached on servers located around the world. In addition, the Microsoft Ajax CDN enables browsers to reuse cached JavaScript files for Web sites that are located in different domains.

The Microsoft Ajax Content Delivery Network supports SSL (HTTPS) in case you need to serve a web page using the Secure Sockets Layer.

This document contains the following

  • Using the ASP.NET Ajax Library with the CDN
  • Using jQuery with the CDN
  • ASP.NET Ajax Library Releases on the CDN
  • jQuery Releases on the CDN
  • jQuery Validation Releases on the CDN
  • ASP.NET MVC Releases on the CDN

Using the ASP.NET Ajax Library with the CDN

You can use the Beta version of the ASP.NET Ajax Library from the CDN by adding the following script element to a page in your Web application:

    <script src="http://ajax.microsoft.com/ajax/beta/0911/Start.js" type="text/javascript"></script>

The CDN also includes debug versions of these scripts that you can use while developing a ASP.NET Ajax application. To use the debug scripts, add the following element to your page instead:

    <script src="http://ajax.microsoft.com/ajax/beta/0911/Start.debug.js" type="text/javascript"></script>

The following example is a complete sample page that illustrates how you can display a set of product records using the ASP.NET Ajax DataView control, using script elements that get the Ajax library from the CDN.

        <title>ASP.NET Ajax from CDN</title>
        <style type="text/css">
        <script type="text/javascript" 
        <script type="text/javascript">
            // Create array of products to display
            var products = [
                {Name: 'Telephone', UnitPrice: 12.33},
                {Name: 'Comb', UnitPrice: 3.28},
                {Name: 'Laptop', UnitPrice: 422.99}            
            // Load all required scripts for the client DataView control
            // When DOM and scripts loaded, create the DataView
            Sys.onReady( function() {
                Sys.create.dataView("#productList", {data:products});
        <ul id="productList" class="sys-template">
            <li>{{Name}} - {{UnitPrice}}</li>

You can download a local copy of ASP.NET Ajax visiting the Download page.

Using jQuery from the CDN

You can download jQuery scripts from the CDN and use them in your Web application by adding the following script element to a page:

    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js" type="text/javascript"></script>                        

The CDN also includes the minified version of the jQuery script, which you can get using the following element:

    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

The following sample page uses the CDN version of the jQuery library to display the contents of a div element when a button is clicked.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <title>jQuery from Microsoft AJAX CDN</title>
        <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js" type="text/javascript"></script>
        <script type="text/javascript">
        $( domReady );
        function domReady() {
            $('#btn').click( showMessage );
        function showMessage() {
    <button id="btn">Show Message</button>
    <div id="message" style="display:none">
        <h1>Hello from jQuery!</h1>
You can learn more about jQuery and download a local copy of jQuery by visiting the jQuery Web site.

ASP.NET Ajax Library Releases on the CDN

The following releases of the ASP.NET Ajax Library are hosted on the CDN. Click each link to see the actual list of files.

ASP.NET Ajax Library version 0909 (Preview 5)

  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjax.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjax.debug.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.debug.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.debug.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.debug.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxWebForms.js
  • http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxWebForms.debug.js

ASP.NET Ajax Library version 3.5

  • http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.debug.js
  • http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js

jQuery Releases on the CDN

The following releases of jQuery are hosted on the CDN:

jQuery version 1.3.2

  • http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.js
  • http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min.js
  • http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2-vsdoc.js
  • http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min-vsdoc.js

jQuery Validation Releases on the CDN

The following releases of the jQuery Validation library are hosted on this CDN:

jQuery Validate 1.5.5

  • http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.js
  • http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js
  • http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate-vsdoc.js

ASP.NET MVC Releases on the CDN

The following ASP.NET MVC JavaScript files are hosted on this CDN:


  • http://ajax.microsoft.com/ajax/mvc/1.0/MicrosoftMvcAjax.js
  • http://ajax.microsoft.com/ajax/mvc/1.0/MicrosoftMvcAjax.debug.js

For information about the terms of use for the CDN, see Microsoft Ajax CDN Terms of Use.