I’ve spent a lot of time this week updating ASP.NET AJAX code samples from RC to RTM. I discovered some changes that aren’t documented in the migration guide. One of them in particular cost me several hours of work.
Third, page methods are now disabled by default and must be explicitly enabled using the ScriptManager control’s new EnablePageMethods property. If any of your pages have page methods, change the ScriptManager declaration in those pages (or your master pages) to look like this:
<asp:ScriptManager EnablePageMethods=”true” … />
Fourth, in addition to removing the AutoCompleteBehavior class from PreviewScript.js, Microsoft also removed PopupBehavior and HoverBehavior. These, too, were moved to the control toolkit in a last-minute push to eliminate any dependency between the control toolkit and the CTP.
So…if you use the preview bits, don’t rely on the source code files that come with them. Instead, extract the real source code files from Microsoft.Web.Preview.dll so you can see what the browser sees.