ASP.NET AJAX 1.0 Beta 2 Release:MS的速度对我们来说不知道是喜还是悲!

吕的部落格唯女子与小人为难养也近之则不孙远之则怨

ASP.NET AJAX 1.0 Beta 2 Release

MS的速度对我们来说不知道是喜还是悲!

原文

On Monday we shipped the Beta2 release of ASP.NET AJAX (aka "Atlas").  You can learn more about it on the http://ajax.asp.net web-site and download it here

ASP.NET AJAX Beta 2 Downloads

Included with the Beta 2 release are three downloads (each of which supports a go-live license)

ASP.NET AJAX 1.0 Beta2: This is the "core" ASP.NET AJAX download and contains the features that will be fully supported in the ASP.NET AJAX 1.0 release (meaning Microsoft product support is standing by 24x7).  The download includes support for the core client-side JavaScript type-system, networking stack, component model, extender base classes, and the server-side functionality to integrate within ASP.NET (including the super-popular ScriptManager, UpdatePanel, UpdateProgress, and Timer controls). 

ASP.NET AJAX Control Toolkit: This download contains 30+ free ASP.NET AJAX controls (with full source code) that make common AJAX scenarios super easy (cascading dropdown lists, animations, modal dialogs, in-place pop-up extenders, etc).  The toolkit is community supported, and built by an open source team containing both Microsoft and non-Microsoft developers.  It only uses AJAX features contained with the ASP.NET AJAX 1.0 Beta2 "core" release above.

ASP.NET AJAX Futures November CTP: This download contains a preview of future AJAX features that we are working on and will likely move into the ASP.NET AJAX "core" download once they are fully baked and understood.  If you want to use APIs that are non-changing and fully-supported, you should target the "core" download above.  But if you want to push the envelope this download provides a bunch of features to take advantage of.

New Features in ASP.NET AJAX Beta 2

In addition to a number of bug-fixes, the ASP.NET AJAX Beta 2 release contains a number of feature improvements worth calling out:

UpdateProgress Control: The UpdateProgress control is now included in the fully-supported "core" ASP.NET AJAX 1.0 Beta 2 download (in Beta1 it was still in the Futures CTP download).  The UpdateProgress control has also been enhanced over the version that shipped in the earlier Atlas CTPs, and now supports the ability to have multiple UpdateProgress controls on a page (and show/hide depending on the UpdatePanel that is being updated).  The UpdateProgress control also now has a useful "DisplayAfter" property that allows you to easily control the wait time before the UpdateProgress animation should display (to avoid you displaying an animation if the response comes back super quick).

Partial Rendering Auto-Degrade for Non-AJAX Browsers: A ScriptManager.SupportsPartialRendering boolean property has been added to indicate whether or not an incoming browser supports AJAX.  By default this is automatically set using settings configured via ASP.NET's BrowserCapabilities system (meaning you can override or customize the setting using .browser files). If you configure or set this value to false for a particular browser or device, ASP.NET AJAX will auto-degrade and not use partial page rendering with UpdatePanels - and instead just use normal postbacks and full page refreshes.

Simplified Client-side Event Binding API: The client-side AJAX JavaScript library now has a cleaner mechanism for binding and detaching multiple event handlers to a DOM element, which reduces the amount of code you have to write and can also helps avoid memory leaks.  Read Bertrand's great blog post to learn more about the new model.

Client-Side JavaScript Localization: Client scripts can now automatically retrieve localized resources from the server, making it possible to more easily create locale and region aware web UI.

Client JavaScript Debugging and Tracing Improvements: A number of additional improvements have been added in Beta2 to identify and diagnose issues in JavaScript.  You can also now use debug.trace and debug.dump to output JavaScript trace statements to either a textarea element you embed within a page, or to the popular FireBug browser add-in or Nikhil's WebDevHelper add-in utilities.

The ASP.NET AJAX team has also built a number of useful JavaScript source management utilities for adding debug parameter validation into JavaScript source code, and have it conditionally be stripped out depending on whether you process the script in "retail" or "debug" mode at development time.  We are going to be shipping the source for these utilities as part of the ASP.NET AJAX Control Toolkit in the near future, which will enable developers to easily take advantage of them within their own projects (we'll even have some cool MSBuild tasks that you can add to-do it for you automatically as part of your standard build process).

Client-Side JavaScript CSS helpers: There is now a useful JavaScript library included that enables developers to easily add, remove and toggle CSS class associations on client controls and elements.

Drag/Drop Support for ASP.NET Web Parts in Safari and FireFox: You can now enable drag/drop of ASP.NET Web Parts using both FireFox and Safari (this later support was not available in the earlier CTPs).  Read all about it in David Barkol's blog post here, or click here to see a screen-shot of web part portal drag/drop customization in action with Safari on a Mac.

Performance and Stability Improvements: The ScriptManager API has been improved with richer support for handling timeout situations with dynamically loaded scripts.  Script components can also now register for dispose semantics to avoid possible memory leaks.

Upgrading from ASP.NET AJAX Beta 1

There is a document on the http://ajax.asp.net home-page that describe how to take an existing ASP.NET AJAX Beta1 application and update it to use Beta2.  This should be relatively straight-forward and only take a few minutes.  The one gotcha to watch out for is that you need to add a "ScriptResources.axd" <httpHandler> into your existing Beta1 web.config files:

<add verb="GET"
path="ScriptResource.axd"
type="Microsoft.Web.Handlers.ScriptResourceHandler"
validate="false"/>

If you don't do this, you will see the following JavaScript error at runtime:

'Sys' is undefined.

Hope this helps,

Scott

P.S. Apologies for the delay in posting this - I've been busy at the ASP.NET Connections Conference in Las Vegas the last few days (talking to the 1500+ people attending the show this fall -- wow!).

所属分类:技术手册标签:AJaxASp.net ASP.NETAJAX1.0Beta2Releas 吕 @ 2006年11月10日16点30分 PM 编辑 ASP.NET AJAX 1.0 Beta 2 Release阅读(2436) 评论(5)

相关文章

评论

  • 牧羊 @ 2006-11-10 20:51:55 回复1#RE:ASP.NET AJAX 1.0 Beta 2 Release

    你的这套程序评论有问题...
  • 牧羊 @ 2006-11-10 20:53:57 回复2#RE:ASP.NET AJAX 1.0 Beta 2 Release

    现在怎么又能回复了,真不明白.你的验证码何必要区分大小写...晕
    你的这套程序,如果能做成像sohu一样能拖动各个版块,那绝对就成功了,http://xbmy.blog.sohu.com

  • jinqiu @ 2006-11-11 23:04:07 回复3#RE:ASP.NET AJAX 1.0 Beta 2 Release

    您好!误闯误撞,来到贵宝地,如有打扰,还请海涵。我现在是一大学生,学经济管理的,但对网站设计技术非常感兴趣。但我现在能做的只是静态网页,从网上抄抄css或者js代码,改一些外观而已,自己完全不会写。前些日子,朋友推荐xml,想学。实际上,我现在有一个想法,想做一个动态的xml网站,有分类储存简单多媒体信息和搜索的功能。我想向您请教的是,这几乎与从零起点开始的我,学习的过程应该是怎样的,有哪些必须学的东西,然后就是--很纠缠的一个问题--如果我悟性中等水平偏上的话,在每天3个小时的学习强度下,大约要多少时间才能有能力建设这样一个网站呢?谢谢解答!欢迎加MSN细聊。

  • 吕 @ 2006-11-12 7:46:41 回复4#RE:ASP.NET AJAX 1.0 Beta 2 Release

    XML看起来很简单,学好也很麻烦,但功能不负有心人,只好你肯努力肯定会学好的,你的时间我不好估算,如果每天花3个小时来学,投入应该不错了.但另一方面,如果动力没了,想学习就难了,你说"用XML储存简单多媒体信息和搜索的功能",但现在直接使用XML来做还是比较麻烦,因为当数据增大的时候当使用XML就不行了,可以考虑WEB服务,XML与另外一部数据库结合,当然还必须会一种合适的动态语言,我现在的方面是ASP.NET,你也可以选择其它的如JSP,PHP等等,很多东西你会觉得越学自己知道的越少,慢慢体会就知道了,如果是想短时间内学会,我想你肯定会失败.因为必竟你没有这方面的基础,付出肯定比其它人要多些.

  • AJAXQIANGZHE @ 2006-11-21 14:19:19 回复5#[推荐]这是个关于AJAX的好东东!!

    [推荐]这是个关于AJAX的好东东!!
     推荐一个很强大的AJAX应用开发工具,支持使用JAVA进行ajax开发,可能马上就要支持.NET版本了。这是一个完全可视化的开发工具,我用了一下很方便,容易入手,而且是免费的。好的才会告诉你哈。
    下载地址是:http://cn.joyistar.com
注:部分评论不可见.
未开放评论

谷歌中ASP.NET AJAX 1.0 Beta 2 Release相关文章

数据加载中,请稍候……