posts - 111,  comments - 37,  trackbacks - 0
 

ASP.NET 3.5 and Visual Studio 2008

ASP.NET 3.5 and Visual Studio 2008 bring great new functionality around Web development and design that makes building standards based, next generation Web sites easier than ever. From the inclusion of ASP.NET AJAX into the runtime, to new controls, the new LINQ data capabilities, to improved support for CSS, JavaScript and others, Web development has taken a significant step forward.

 

ASP.NET 3.5 and Visual Studio 2008为基于Web的开发和设计,带来了巨大的功能性变化,这使得创建标准Web程序比以前更容易。在运行时中包含的ASP.NET AJAX,增加了新的控件,新的LINQ数据数据能力,增强了对CSS、JavaScript和其他内容的支持,Web开发人员从此迈出了更为重要的一步。

 

ASP.NET 3.5的新特性:

1.ASP.NET AJAX

With ASP.NET AJAX, developers can quickly create pages with sophisticated, responsive user interfaces and more efficient client-server communication by simply adding a few server controls to their pages. Previously an extension to the ASP.NET runtime, ASP.NET AJAX is now built into the platform and makes the complicated task of building cross-platform, standards based AJAX applications easy.

使用AJAX,开发人员可以快速的创建灵活多变、快速响应得用户界面,而实现这些功能,只需要在页面中添加几个服务器控件,以前AJAX只是ASP.NET运行时的一个扩展,现在它被集成在.NET平台上,而且能够完成更负责的跨平台任务,创建标准的AJAX应用程序变得更简单。

 

2.LINQ and other .NET Framework 3.5 Improvements

With the addition of Language Integrated Query (LINQ) in .NET Framework 3.5, the process of building SQL queries using error-prone string manipulation is a thing of the past. LINQ makes your relational data queries a first-class language construct in C# and Visual Basic, complete with compiler and Intellisense support. For Web applications, the ASP.NET LinqDataSource control allows you to easily use LINQ to filter, order and group data that can then be bound to any of the data visualization controls like the ListView and GridView controls. In addition, all the other improvements to .NET Framework 3.5, including the new HashSet collection, DateTime offset support, diagnostics, garbage collection, better thread lock support, and more, are all available to you in your ASP.NET applications.

NET Framework 3.5中增加了LINQ查询语言,以前我们在使用SQL查询字符串时总是容易出错,现在,LINQ为C#和VB提供了更安全的架构,并提供更智能的支持。对于Web应用程序,ASP.NET中的LinqDataSource数据源控件允许我们轻松的去查询、过滤等数据操作。.NET Framework 3.5其他的特性还包括:HashSet集合,DateTime offset支持,diagnostics异常(诊断)处理,garbage(垃圾回收)集合,更好的线程锁定支持等等。这里的garbage听起来很像Java的GC,不知道是不是呢,试验下就知道了。

 

3.WCF Support for RSS, JSON, POX and Partial Trust

With .NET Framework 3.5, Windows Communication Foundation (WCF) now supports building Web services that can be exposed using any number of the Internet standard protocols, such as SOAP, RSS, JSON, POX and more. Whether you are building an AJAX application that uses JSON, providing syndication of your data via RSS, or building a standard SOAP Web service, WCF makes it easy to create your endpoints, and now, with .NET Framework 3.5, supports building Web services in partial-trust situations like a typical shared-hosting environment.

在.NET Framework 3.5中,WCF支持创建Web服务(被大多数网络标准协议支持,如SOAP,RSS,JSON,POX等),无论你是使用JSON开发AJAX程序,还是RSS,或是标准的SOAP Web服务。 WCF使你可以轻松的创建终端程序,现在,.NET Framework 3.5还支持在局部信任领域(类似一个典型的主机共享环境)创建Web服务。

 

 

Visual Studio 2008的新特性

 

1.New Web Design Interface

Visual Studio 2008 has incorporated a new Web designer that uses the design engine from Expression Web. Moving between design and source view is faster than ever and the new split view capability means you can edit the HTML source and simultaneously see the results on the page. Support for style sheets in separate files has been added as well as a CSS properties pane which clarifies the sometimes-complex hierarchy of cascading styles, so that it is easy to understand why an element looks the way it does. In addition Visual Studio 2008 has full WYSIWYG support for building and using ASP.NET Nested Master Pages which greatly improves the ability to build a Web site with a consistent look and feel.

Visual Studio 2008提供了新的界面,这也算是VS一贯的做法了(界面风格每次都在变)。VS2008去除了设计器和源代码视图,这使得打开VS2008的界面比以前更快。新的分割视图,允许你编辑HTML源代码,并查看页面效果。对层叠样式表的支持能力大大增强。控件的样式可以立刻显现出来,这也是鼎鼎大名的WYSIWYG(所见即所得)。VS2008支持嵌套母版页开发,这样的页面看起来,会有什么样的效果呢,自己下载一个版本看看吧。

 

 

2.JavaScript Debugging and Intellisense

In Visual Studio 2008, client-side JavaScript has now become a first-class citizen in regards to its debugging and Intellisense support. Not only does the Intellisense give standard JavaScript keyword support, but it will automatically infer variable types and provide method, property and event support from any number of included script files. Similarly, the JavaScript debugging support now allows for the deep Watch and Locals support in JavaScript that you are accustomed to having in other languages in Visual Studio. And despite the dynamic nature of a lot of JavaScript, you will always be able to visualize and step into the JavaScript code, no matter where it is generated from. This is especially convenient when building ASP.NET AJAX applications.

在VS2008中,客户端不再仅仅支持标准JavaScript的对象,而且能自动地显示那些自定义的变量和方法,更强的脚本调试功能(具体什么自己测试下)。

 

 

3.Multi-targeting Support

In previous versions of Visual Studio, you could only build projects that targeted a single version of the .NET Framework. With Visual Studio 2008, we have introduced the concept of Multi-targeting. Through a simple drop-down, you can decide if you want a project to target .NET Framework 2.0, 3.0 or 3.5. The builds, the Intellisense, the toolbox, etc. will all adjust to the feature set of the specific version of the .NET Framework which you choose. This allows you to take advantage of the new features in Visual Studio 2008, like the Web design interface, and the improved JavaScript support, and still build your projects for their current runtime version.

在以前的VS中,你只能创建一个版本下的工程(如只能创建2.0版本或1.1版本),在VS2008中,我们可以包含多个版本了,通过一个简单的下拉操作,你就可以决定要创建哪个版本下的项目(包括2.0,3.0,3.5)。不管采用哪个版本,你都可以使用VS2008提供的新功能,如在Web开发中,你可以在旧的项目中,使用VS2008提供的对JavaScript的支持。



注意:个人翻译着玩,大家随便看看!不要太较真。

posted on 2007-11-09 15:12 技术是第一生产力 阅读(1100) 评论(0)  编辑 收藏 引用 所属分类: .NET新技术
只有注册用户登录后才能发表评论。
<2007年11月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

常用链接

留言簿(4)

随笔分类(86)

随笔档案(111)

搜索

  •  

积分与排名

  • 积分 - 43875
  • 排名 - 124

最新随笔

最新评论

评论排行榜