ASP.NET 4.0 AJAX Preview Release 4 Setup - More Wally - Wallace B. McClure

Giving people what they want, More Wally. This is the technical and personal blog site of
Wallace B. (Wally) McClure.

This Blog


Technical Sites


More Wally - Wallace B. McClure

This blog will have all kinds of posts about Wally McClure. In it, there will be tons of .NET and computer programming posts as well as Wally's views on life in general. As you might guess, this site and blog help you get More Wally in your life. What more could anyone want? iPhone, Android, Xamarin.iOS, Xamarin.Android, Mobile, HTML5, .NET, ADO.NET, ASP.NET, AJAX, jQuery, jQuery Mobile, ASP.NET AJAX, and Windows Azure............follow me on twitter at Wally

ASP.NET 4.0 AJAX Preview Release 4 Setup

I downloaded and setup the javascript files for ASP.NET 4.0 AJAX Preview Release 4.  This release was put up last Thursday night / Friday morning.  Since I had a talk on Saturday at the Atlanta Code Camp on this subject, I decided to take the plunge and get my code moved over and running on it to show the latest and greatest running.  While the intelligence of that decision can be debated for a long time, I got it done.  I wanted to share some stuff about the setup of the product.  There are three sets of javascript files that are in the download, previously, there were two sets of files.  The new file is MicrosoftAjax.js.  This file is a little bit surprising because there is a file in the base Microsoft ASP.NET AJAX called this.  I read the instructions.  The instructions were a little bit blurry on this setup subject.  They sort of implied that the MicrosoftAjax.js files was only needed if you were NOT using the ASP.NET 3.5 Script Manager.  Any way, I found this to not be true.  To get things setup correctly, this is the setup I found that worked.

<asp:ScriptManager ID="sm" runat="server">
        <asp:ScriptReference Name="MicrosoftAjax.js"  Path="~/js/MicrosoftAjax.js" />
        <asp:ScriptReference Path="~/js/MicrosoftAjaxAdoNet.debug.js" />
        <asp:ScriptReference Path="~/js/MicrosoftAjaxTemplates.debug.js" />
        <asp:ServiceReference Path="~/TwitterService.svc" /> <-- this is my file, so you probably don't need it.

Bertrand LeRoy suggested this setup below.  Given that he works on the ASP.NET team, I'll take his suggestion.  :-)

<asp:ScriptManager ID="sm" runat="server">
        <asp:ScriptReference ScriptMode="Inherit" Name="MicrosoftAjax.js"  Path="~/js/MicrosoftAjax.js" />
        <asp:ScriptReference ScriptMode="Inherit" Path="~/js/MicrosoftAjaxAdoNet.js" />
        <asp:ScriptReference ScriptMode="Inherit" Path="~/js/MicrosoftAjaxTemplates.js" />
        <asp:ServiceReference Path="~/TwitterService.svc" />

I hope that this helps you out in the area of getting the preview setup.



Community Blogs said:

I downloaded and setup the javascript files for ASP.NET 4.0 AJAX Preview Release 4. This release was

March 17, 2009 6:20 AM
2006 - Wallace B. McClure
Powered by Community Server (Non-Commercial Edition), by Telligent Systems