Tuesday, February 27, 2007

Using January CTP of ASP.NET 2.0 Ajax Extensions

So, a bunch of the things I'm reading in my current book (see post below) don't work, because Microsoft whacked off a bunch of the features of their ASP.NET 2.0 Ajax Extensions in order to get to the current release versions (1.0). In order to get these features back, you need to install the January CTP release in addition to the standard RTM (1.0) release. After you goto ajax.asp.net and download the CTP and run the installer, not much has changed.

To get the CTP (aka "Futures") stuff into your scripts, you need to manually add references to the scripts in your ScriptManager, like this:

<asp:scriptmanager runat="”server”" id="”ScriptManager1”">
<scripts>
<asp:scriptreference assembly="Microsoft.Web.Preview" name="PreviewScript.js" />
<asp:scriptreference assembly="Microsoft.Web.Preview" name="PreviewGlitz.js" />
<asp:scriptreference assembly="Microsoft.Web.Preview" name="PreviewDragDrop.js" />
</scripts>
</asp:scriptmanager>

Now you should be able to use stuff like Sys.Preview.UI.Button again (note the need now to puts "Preview" after the first part of the namespaces).

No comments:

Disqus for A Nofsinger's Blog