Download presentation
Presentation is loading. Please wait.
1
迎接 ASP.NET 4.0 新世代新方向 奚江華 作家/微軟講師/技術顧問
2
2 Agenda 1. What's new in VS 2010 2..NET Framework 4.0 3. ASP.NET 4.0
3
3
4
4 VS 2010 IDE
5
5 A New, Simplified SKU Structure VSTS Team Suite w/ MSDN Premium VSTS Team Suite w/ MSDN Premium VSTS Development Ed. w/ MSDN Premium VSTS Development Ed. w/ MSDN Premium VSTS Database Ed. w/ MSDN Premium VSTS Database Ed. w/ MSDN Premium VSTS Test Ed. w/ MSDN Premium VSTS Test Ed. w/ MSDN Premium VSTS Architecture Ed. w/ MSDN Premium VSTS Architecture Ed. w/ MSDN Premium Visual Studio Professional w/ MSDN Professional Visual Studio Professional w/ MSDN Premium Visual Studio Professional Visual Studio Standard VS 2010 Ultimate w/ MSDN VS 2010 Ultimate w/ MSDN VS 2010 Premium w/ MSDN VS 2010 Premium w/ MSDN VS 2010 Professional w/ MSDN VS 2010 Professional
6
6 VS 2010 版本功能與目標 Audience Feature Set Minimal Complete HobbyistEnterprise Professional Ultimate Express Premium
7
7 VS 2010 高階功能概觀 Visual Studio 2010 Professional Visual Studio 2010 Professional New WPF Editor Generate From Usage Generate From Usage Customizable IDE Silverlight Tooling Multi-Core Development Multi-Core Development Cloud Development Cloud Development Web Development Web Development Windows Development Windows Development Office Development Office Development SharePoint Development SharePoint Development
8
8 VS 2010 三大主軸訴求 Set your ideas free Set your ideas free Simplicity Through Integration Simplicity Through Integration Quality Code Ensured Quality Code Ensured
9
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
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
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
12 VS 2010 IDE
13
13
14
14.NET Framework 4.0 Base Class Libraries The CLR JIT & NGEN Garbage Collector Security Model Exception Handling Loader & Binder WPF Win Forms DLR ASP.NET WCF And more! LINQ
15
15.NET Framework 與 CLR 回顧.NET 1.0.NET 1.1.NET 2.0 3.0 3.5.NET 4 2002 2003 2008 CTP 2005-08 CLR 1.0 CLR 1.1 CLR 2.0 CLR 4 SP1
16
16 CLR 2 - Existing Side-By-Side Host Process (i.e. Outlook).NET 2.0 2.0 add-in 3.0 3.5 3.0 add-in 3.5 add-in 1.1 add-in.NET 1.1
17
17 CLR 4 - In-Process Side-By-Side.NET 2.0.NET 4.0 2.0 add-in 3.0 3.5 Host Process (i.e. Outlook) 3.0 add-in 3.5 add-in 4.0 add-in
18
18 Application Version 4.0 Client Applications WPF 4 MEF Web Applications Web Forms 4 AJAX 4 Client/Server WCF 4
19
19 The Building Blocks Parallel Computing Task Parallel Library Parallel LINQ Data Access Entity Framework 4 Data Services 1.5 Runtime DLR Integration Type Equivalence In-Process SxS
20
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
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
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
24 Parallel Computing with.NET 4 1. Task Parallel Library (TPL) 2. Parallel LINQ (PLINQ) 3. Coordination Data Structures (CDS) 4. System.Threading Improvements
25
25 Parallel LINQ Parallel LINQ (PLINQ) enables developers to easily leverage manycore with a minimal impact to 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 orderby p.Year ascending select p; var q = from p in people where p.Name == queryInfo.Name && p.State == queryInfo.State && p.Year >= yearStart && p.Year <= yearEnd orderby p.Year ascending select p;.AsParallel().AsParallel()
26
26 1. ASP.NET Chart Controls 2. ASP.NET MVC 2.0 3. ASP.NET AJAX 4.0 4. Web Deployment with VS 2010 5. VS 2010 Web Designer Improvements 6. ASP.NET Core Services 7. ASP.NET Web Form
27
1. ASP.NET Chart Controls now built-into ASP.NET 4.0
28
QueryExtender Control LINQ To SQL Data Source LINQ To SQL Data Source Entity Data Source Entity Data Source 1)Uses arbitrary language 2)Difficult to extend 1)Uses Entity SQL 2)Difficult to extend Query Extender Query Extender 1)Uses Parameters 2)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 {{ LastName }}, {{ FirstName }}
34
Microsoft AJAX CDN Free CDN hosting of AJAX library scripts ASP.NET AJAX 4 jQuery and jQuery Validation Built-in support with
35
35 4. Web Deployment with VS 2010 Web.config Transformation SQL Deployment Web Packaging One-Click Publishing
36
36 Web.config transformation Web.Config (開發電腦) Web.Release.Config (正式伺服器)
37
37 SQL Database Deployment
38
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
39 One-Click Publishing
40
40 Web Deployment 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 11.7s 2x 5x 4x 3x 4x 6x
43
XML Documentation Comments
44
44 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
51
MetaKeywords & MetaDescription Page.MetaKeywords Page.MetaDescription
52
Enabling View State for Individual Controls
53
Changes to Browser Capabilities HttpBrowserCapabilities object blackberry.browser chrome.browser Default.browser firefox.browser gateway.browser generic.browser ie.browser iemobile.browser iphone.browser opera.browser safari.browser
54
Routing in ASP.NET 4.0 Request: Products/Bikes Request: Products/Bikes ASP.NET Routing Route: Product/{name} -> Product.aspx ASP.NET Routing Route: Product/{name} -> Product.aspx WebForms Page File Name: Product.aspx Route Values: Name = “Bikes” WebForms Page File Name: Product.aspx Route Values: Name = “Bikes” Response
55
Setting Client ID 1) Master Page (No ID) 2) User Control (“HeaderForm”) Control Hierarchy 3) Drop Down List (“States”) Resulting Client IDs: 1)ctl00 2)ctl00_HeaderForm 3)ctl00_HeaderForm_States
56
ClientIDMode property AutoID Static Predictable Inherit
57
57 MetaKeyword ViewState ClientID
58
Persisting Row Selection in Data Controls ASP.NET 2.0 &3.5 RowIndex ASP.NET 4.0 Data Key
59
Html Encoded Code Expressions
60
Project Template Changes Empty ASP.NET Web Application Web Site Project Templates Web Application Templates Online Templates
62
62 Persisting Row Selection Html Encoded Code Expressions Project Template
63
Rendering an Outer Table for Templated Controls RenderOuterTable Property FormView Login PasswordRecovery ChangePassword Wizard CreateUserWizard
64
ListView Control Enhancements ASP.NET 3.5 ASP.NET 4.0
65
CheckBoxList and RadioButtonList Control Enhancements RepeatLayout – OrderedList 、 UnorderedList
66
Menu Control Improvements IncludeStyleBlock Property
67
67 Rendering an Outer Table CheckBoxList and RadioButtonList Menu Control
68
68 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.