ASP.NET AJAX 4.0 Preview 5

ASP.NET AJAX is a pure client-side JavaScript library that enables you to build Ajax applications that work with all modern web browsers. By taking advantage of ASP.NET AJAX client controls and templates, you can build database-driven web applications that execute entirely in the browser.
ASP.NET AJAX supports the following features:

  • Client templates that can be used to format database data in the browser
  • Client controls such as the DataView control
  • Client DataContext component that supports change tracking and identity management
  • ADO.NET Data Services support
  • WCF and ASMX Web service support
  • JSONP support
  • Observable pattern for plain JavaScript objects
  • Live Bindings
  • Command Bubbling
  • Support for managing complex links and associations between entities from multiple entity sets or tables

In Preview 5 of ASP.NET AJAX 4.0 we continue to improve the client-side data story introduced in previous previews of ASP.NET AJAX. In this release, we add support for the following features:
  • Dynamic and recursive templates
  • Binding Converters
  • Compatibility with the ASP.NET UpdatePanel

download: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=32770

Posted in: asp.net | Tags: wcf asp.net ajax dataview datacontext json ajax 4.0 ajax 4.0 preview preview 5 asmx updatepanel

How to Use the Preview Scripts in ajax 4.0

This preview consists of release and debug versions of the following script resources:

· An updated version of MicrosoftAjax.js

· MicrosoftAjaxTemplates.js

· MicrosoftAjaxAdoNet.js

· MicrosoftAjaxDataContext.js

· An updated version of MicrosoftAjaxWebForms.js

To use the new features in a Web page, enable the updated version of Microsoft Ajax on the page. This is done either by including a <script> tag that references MicrosoftAjax.js (or MicrosoftAjax.debug.js), or by including a server-side ScriptManager control in the page under which you add a ScriptReference to the new MicrosoftAjax.js.

Then, simply include the new script files:

· MicrosoftAjaxTemplates.js (or MicrosoftAjaxTemplates.debug.js)

· MicrosoftAjaxAdoNet.js (or MicrosoftAjaxAdoNet.debug.js).

· MicrosoftAjaxDataContext.js (or MicrosoftAjaxDataContext.debug.js).

by adding corresponding ScriptReferences (under the ScriptManager control) or <script> tags.

Example using Script Manager:

<asp:ScriptManager ID="sm" runat="server">

<Scripts>

<asp:ScriptReference Name="MicrosoftAjax.js" Path="~/scripts/MicrosoftAjax.js" />

<asp:ScriptReference ScriptMode="Inherit" Path="~/scripts/MicrosoftAjaxTemplates.js" />

<asp:ScriptReference ScriptMode="Inherit" Path="~/scripts/MicrosoftAjaxAdoNet.js" />

<asp:ScriptReference ScriptMode="Inherit" Path="~/scripts/MicrosoftAjaxDataContext.js" />

</Scripts>

</asp:ScriptManager>

Example using <script> tags:

<script type="text/javascript" src="../scripts/MicrosoftAjax.debug.js"></script>

<script type="text/javascript" src="../scripts/MicrosoftAjaxTemplates.debug.js"></script>

<script type="text/javascript" src="../scripts/MicrosoftAjaxAdoNet.debug.js"></script>

<script type="text/javascript" src="../scripts/MicrosoftAjaxDataContext.debug.js"></script>

If you wish to use UpdatePanel, you will need to also include the updated version of MicrosoftAjaxWebForms.js in your page. An example of this is provided in the “UpdatePanel Support” section of this document.

Posted in: asp.net | Tags: inherit ajax 4.0 updatepanel preview scripts microsoftajaxtemplates.js microsoftajaxadonet.js microsoftajaxdatacontext.js microsoftajax.js scriptmanager scriptreferences scriptmode microsoftajaxwebforms.js