One week ago today, Microsoft officially released ASP.NET 2.0 Ajax. This includes the core components (Extensions), the ASP.NET AJAX Control Toolkit and Futures January CTP. If you have been using an older version of this software or are new, I might hold off installing the official release! For a week now I have been finding nothing but bugs and issues with things that worked in the previous release but now are broken. I will keep adding to this post, but here is the first and major issues that I am seeing:
UpdatePanel and a Simple Trigger
One of the simplest bugs to reproduce is a trigger in the UpdatePanel. The code below shows an TextBox that is configured to cause a postback on the UpdatePanel when you press return. The code below works just fine.
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="SM" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
Time:
<%= datetime.Now.ToString() %>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TextBox1" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
Simply add a TextBox to the ContentTemplate and the trigger no longer works!!!!
More To Come
I'm also having issues with ValidatorCalloutExtender inside of an ItemTempate, AutoCompleteExtender inside of an UpdatePanel and more. All worked 8 days ago!
Also, if you have already started an Ajax site before version 1.0 there are major migration issues with the web.config. In previous updates you could simply copy the web.config from a new 'AJAX Enabled Web Site'. For some reason, this no longer works. The only way I could get my sites working with 1.0, is to create a new AJAX site, and copy all of my code over to the new project. Go figure.
If you read the install requirements, they 'strongly' recommend installing SP1 of Visual Studio. Make sure you have something to do during this process. Depending on what machine I was updating it took anywhere from 1 to 3 hours!