1 / 68

迎接 ASP.NET 4.0 新世代新方向

迎接 ASP.NET 4.0 新世代新方向. 奚江華 作家/微軟講師/技術顧問. Agenda. What's new in VS 2010 .NET Framework 4.0 ASP.NET 4.0. 1. What's new in VS 2010. VS 2010 IDE. A New, Simplified SKU Structure. VSTS Team Suite w/ MSDN Premium. VS 2010 Ultimate w/ MSDN. VSTS Development Ed. w/ MSDN Premium.

shino
Download Presentation

迎接 ASP.NET 4.0 新世代新方向

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 迎接ASP.NET 4.0新世代新方向 奚江華 作家/微軟講師/技術顧問

  2. Agenda • What's new in VS 2010 • .NET Framework 4.0 • ASP.NET 4.0

  3. 1. What's new in VS 2010

  4. VS 2010 IDE

  5. A New, Simplified SKU Structure VSTS Team Suite w/ MSDN Premium VS 2010 Ultimate w/ MSDN VSTS Development Ed. w/ MSDN Premium VSTS Database Ed. w/ MSDN Premium VS 2010 Premium w/ MSDN VSTS Architecture Ed. w/ MSDN Premium VSTS Test Ed. w/ MSDN Premium VS 2010 Professional w/ MSDN Visual Studio Professional w/ MSDN Premium Visual Studio Professional w/ MSDN Professional VS 2010 Professional Visual Studio Professional Visual Studio Standard

  6. VS 2010版本功能與目標 Complete Ultimate Premium Feature Set Professional Express Minimal Hobbyist Enterprise Audience

  7. VS 2010高階功能概觀 Visual Studio 2010 Professional Web Development Silverlight Tooling Windows Development New WPF Editor Office Development SharePoint Development Customizable IDE Cloud Development Generate From Usage Multi-Core Development

  8. VS 2010三大主軸訴求 Set your ideas free Simplicity Through Integration Quality Code Ensured

  9. Set your ideas free Create what you can imagine, build on the strengths of your team, and open up new possibilities. • New prototyping, modeling, and visual design tools enable you to create innovative applications for Windows and the Web • Create a shared vision as a foundation for creativity with SketchFlow ,in Microsoft Expression® Studio , and Team Foundation Server • Take advantage of new opportunities & capabilities offered by multi-core programming and cloud development tools

  10. Simplicity through integration A single integrated development environment that takes your skills further and adjusts to the way you work. • Complete all your coding, modeling, testing, debugging, and deployment work without leaving the Visual Studio 2010 environment • Use existing standards and skills to target a growing number of application types including Microsoft SharePoint® and Windows® Azure™ • Work your way through multi-monitor support, partner extensions, and a new editor.

  11. Quality tools help ensure quality results • Powerful testing tools with proactive project management features help you build the right app the right way. • Use the new IntelliTrace debugger to isolate the point of failure within a recorded application history. • Stay ahead of the curve with proactive project management tools including new reports, dashboards, and planning worksheets. • Know that you’ve built the right application the right way with manual and automated testing tools.

  12. VS 2010 IDE Demo

  13. 2 .NETFramework 4.0

  14. .NET Framework 4.0 WPF Win Forms DLR ASP.NET WCF LINQ And more! Base Class Libraries The CLR JIT & NGEN Garbage Collector Security Model Exception Handling Loader & Binder

  15. .NET Framework與CLR回顧 SP1 3.5 3.0 .NET 1.0 .NET 1.1 .NET 2.0 .NET 4 2002 2003 2005-08 2008 CTP CLR 1.0 CLR 1.1 CLR 2.0 CLR 4

  16. CLR 2 - Existing Side-By-Side 2.0 add-in 3.0 add-in 1.1 add-in 3.5 add-in 3.5 .NET 1.1 3.0 .NET 2.0 Host Process (i.e. Outlook)

  17. CLR 4 - In-Process Side-By-Side 2.0 add-in 3.0 add-in 3.5 add-in 4.0 add-in 3.5 .NET 4.0 3.0 .NET 2.0 Host Process (i.e. Outlook)

  18. Application Version 4.0 Web Applications Client Applications Web Forms 4 AJAX 4 WPF 4 MEF Client/Server WCF 4

  19. The Building Blocks Parallel Computing Data Access Runtime DLR Integration Type Equivalence In-Process SxS Task Parallel Library Parallel LINQ Entity Framework 4 Data Services 1.5

  20. A lot of new for WF/WCF 4 • XAML-only workflows are the new default • Unified model between WF, WCF, and WPF • Extended base activity library • Simplified WF programming model • Support for arguments, variables, expressions • Major improvements to WCF integration • Runtime and designer improvements • Service discovery for WCF • Hosting & management via "Dublin“

  21. ADO.NET Data Services 1.5 • Server Enhancements • Row count • Server-side paging • Friendly feeds • BLOB streams • Client Enhancements • Row Count • WPF/SL data binding

  22. Dynamic Data • New Field Templates • Url, Email, Enumeration • Entity Templates • Easily change look and feel for objects / tables • Automatic templates for ListView and FormView • Many to Many Support • Inheritance Support • Model aware validation for all Web Forms controls

  23. ADO.NET Entity Framework 4.0 • Major improvements with VS10 and .NET 4 • Improvements: • Model First and POCO • Lazy Loading • Pluralization/Singularization • Expanded LINQ support • Foreign Keys • Disconnected API’s to enable N-tier • T4 Templates to customize code generation

  24. Parallel Computing with .NET 4 • Task Parallel Library (TPL) • Parallel LINQ (PLINQ) • Coordination Data Structures (CDS) • System.Threading Improvements

  25. Parallel LINQ Parallel LINQ (PLINQ)enables developers to easily leveragemanycore with a minimal impactto existing LINQ programming model var q = from p in people         where p.Name == queryInfo.Name && p.State == queryInfo.State && p.Year >= yearStart && p.Year <= yearEnd orderbyp.Year ascending         select p; .AsParallel() .AsParallel()

  26. ASP.NET Chart Controls • ASP.NET MVC 2.0 • ASP.NET AJAX 4.0 • Web Deployment with VS 2010 • VS 2010 Web Designer Improvements • ASP.NET Core Services • ASP.NET Web Form 3. ASP.NET 4.0

  27. 1. ASP.NET Chart Controls • <asp:chart /> now built-into ASP.NET 4.0 • <asp:QueryExtender/> control • Enables easier filtering of database results • Ideal for custom search queries

  28. QueryExtender Control LINQ To SQL Data Source Entity Data Source Uses arbitrary language Difficult to extend Uses Entity SQL Difficult to extend Query Extender Uses Parameters Very easy to perform advanced queries

  29. Filtering Data with the QueryExtender Control QueryExtender filter options: • SearchExpression • RangeExpression • PropertyExpression • OrderByExpression • CustomExpression

  30. 2. ASP.NET MVC 2 Visual Studio 2010 Included Visual Studio 2008 (Service Pack 1) Download Both versions built against .NET 3.5

  31. What’s New in MVC 2? • Better Separation of Concerns (Maintainability) • Html.RenderAction() • Areas • Easier Validation (Maintainability/Productivity) • Data Annotations • Client Validation • Helper Improvements (Maintainability/Productivity) • Strongly-Typed Helpers • Templated Helpers

  32. 3. ASP.NET AJAX 4.0 • Rich client side apps • Client Side Templates • Client Side Controls • Client Side Data Binding • Refactored Library (much smaller downloads) • AJAX Control Toolkit • Huge library of AJAX Controls

  33. ASP.NET AJAX 4 - Client Templates Client-Side <ul class="sys-template"> <li>{{ LastName }}, {{ FirstName }}</li> </ul>

  34. Microsoft AJAX CDN • Free CDN hosting of AJAX library scripts • ASP.NET AJAX 4 • jQuery and jQuery Validation <script src=“http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js” type="text/javascript“ /> • Built-in support with <asp:scriptmanager>

  35. 4. Web Deployment with VS 2010 • Web.config Transformation • SQL Deployment • Web Packaging • One-Click Publishing

  36. Web.config transformation Web.Config(開發電腦) Web.Release.Config(正式伺服器)

  37. SQL Database Deployment

  38. Web packaging • Web Content (.aspx, .ascx, images, xml files, PDBs, Binaries etc) • IIS Settings (Directory browsing, Error pages, Default Documents etc) • Databases that the web project uses • GAC Assemblies and COM components which the web project depends upon • Registry Settings that may be used within the web project • Security Certificates • App Pools

  39. One-Click Publishing

  40. Web Deployment Demo Web.config Transformation Database deployment Web packaging from VS 2010 One-Click publishing

  41. 5. Web Designer Improvements • Improved CSS Compatibility(CSS 2.1) • HTML and JScript Snippets • Faster JScript IntelliSense Updating • XML Documentation Comments

  42. IntelliSense Update Times for Popular Libraries Time in Milliseconds on Core 2 Duo 2.0 GHz Machine 2x 5x 4x 3x 4x 6x 11.7s

  43. XML Documentation Comments

  44. Demo ASP.NET Snippet JavaScript IntelliSense Updating

  45. 6. ASP.NET Core Services • Web.config File Minification • Extensible Output Caching • Auto-Start Web Applications • Permanently Redirecting a Page • The Incredible Shrinking Session State • Expanding the Range of Allowable URLs • Extensible Request Validation • Object Caching and Object Caching Extensibility • Extensible HTML, URL, and HTTP Header Encoding • Performance Monitoring for Individual Applications in a Single Worker Process • Multi-Targeting

  46. Web.config File Minification 一堆組態設定已移入machine.config中

  47. Extensible Output Caching Web.Config .aspx

  48. Shrinking Session State ASP.NET使用System.IO.Compression.GZipStream class對Session State進行壓縮

  49. 7. ASP.NET Web Form • Page.MetaKeywords and Page.MetaDescription Properties • Enabling View State for Individual Controls • Changes to Browser Capabilities • Routing in ASP.NET 4 • Setting Client IDs • Persisting Row Selection in Data Controls • Filtering Data with the QueryExtender Control • Html Encoded Code Expressions

  50. ASP.NET Web Form(cont.) • Project Template Changes • CSS Improvements • Hiding div Elements Around Hidden Fields • Rendering an Outer Table for Templated Controls • ListView Control Enhancements • CheckBoxList and RadioButtonList Control Enhancements • Menu Control Improvements • Wizard and CreateUserWizard Controls

More Related