迎接 ASP.NET 4.0 新世代新方向 奚江華 作家/微軟講師/技術顧問. 2 Agenda 1. What's new in VS 2010 2..NET Framework 4.0 3. ASP.NET 4.0.

Slides:



Advertisements
Similar presentations
Ofir Aspis 1/2010 VS 2010 Targets High Level - IDE New Features VS 2010 As Editor and Platform Demo Editor features Extending.
Advertisements

.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
 Jeff King Program Manager Microsoft Corporation TL48.
FIRST LOOK AT “ORCAS” Scott Guthrie General Manager.NET Developer Platform.
ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation.
Name SuPeng. .NET Framework & Visual Studio Roadmap.NET Framework 3.5 overview Visual Studio design goals Lap around new features.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
VTALKS Thailand All Season Place. Agenda  Web Forms  Core Services  Web Designer Improvement  Web Application Deployment  Dynamic.
Visual Studio 2008 and ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
Visual Studio 2010 and.NET Framework 4 Training Workshop.
What’s new in ASP.NET 3.5? Mike Ormond Developer & Platform Group Microsoft Ltd
.NET Framework 4 and Visual Studio 2010 Pandurang NayakHarish Ranganathan Client Platform EvangelistWeb Platform Evangelist Microsoft Corporation IndiaMicrosoft.
What’s new for Rich Clients? Martin Parry Developer & Platform Group Microsoft Ltd
Web Client 2.0 for NAV 2013R2 Lukasz Zoglowek & Thomas S. Jensen
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
Powerful, modern desktops enable next generation applications Hardware acceleration brings real-time lighting, texturing and rendering Visual.
A tour of Visual Studio 2008 and the.NET Framework v3.5 Daniel Moth Developer & Platform Group Microsoft
Visual Studio 2008 for ASP.NET developers Daniel Moth Developer and Platform Group Microsoft
ASP.NET 4.0 Web Developers User Group Israel June 2009.
Multiple Framework Targeting Split View CSS Task Panes.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Web & Cloud Development Jason Keicher - Microsoft.
What’s New In Visual Studio 2010 Denys Kholod Technology Expert Hmarasoft.com.
Ken Casada Developer Evangelist Microsoft Switzerland WebMatrix: Your Web Made.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
1 Jon Box Architect Evangelist Microsoft John Mullinax Platform Strategy Advisor Microsoft.
Visual Studio 2008 and.NET 3.5 provide seamless support for all of the protocols and techniques popular in Web 2.0-style applications. Visual Studio.
Tony Goodhew Product Planner DEV328.
 Joshua Goodman Group Program Manager Microsoft Corporation.
Jeff King Senior Program Manager Microsoft Session Code: WIA204.
J. Michael Palermo IV Director of Development Interface, USA WUX203.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
Scott Hanselman Principal Program Manager Microsoft DTL303.
Lap Around the.NET Framework 4 NameTitleCompany. A Look Back….NET 1.0.NET 1.1.NET NET CTP CLR 1.0 CLR 1.1 CLR 2.0 CLR.
What was new in VS Studio 2008 A bird eye view from the height of ft By: Shahzad Sarwar Software Architect Comsoft computer consultants.
Office 365 Development July 2014.
Visual Studio 2010 and .NET Framework 4 Name Title
Integrating SharePoint 2010 with Office 2010
TechEd /1/2018 7:56 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
MIX 09 6/5/2018 9:14 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
6/26/2018 9:02 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Visual Studio 2010 and .NET Framework 4 Training Workshop
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Microsoft Ajax Taking Ajax to the Next Level
Tech·Ed North America /14/2018 5:54 AM
Building Modern Web Apps with ASP.NET MVC 6
ASP.NET Roadmap Mike Ormond Developer & Platform Group Microsoft Ltd
12/2/ :05 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows Azure Keenan Newton 3-021
Building event-driven, long-running apps with Windows workflow
Data Driven ASP.NET Web Forms Applications Deep Dive
Tech Ed North America /1/ :36 AM Required Slide
ASP.NET 4 Core Runtime for Web Developers
LitwareHR v2: an S+S reference application
Pablo Castro Software Architect Microsoft Corporation
Visual Studio 2010 SharePoint Development Tools Overview
2010 Microsoft BI Conference
Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4
From Development to Production: Optimizing for Continuous Delivery
Building Business Applications in LightSwitch
Developing for Windows Azure
From Development to Production: Optimizing for Continuous Delivery
4/19/2019 1:57 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Visual Studio 2010 和 .NET Framework 4 培训研讨会
Developing Windows Azure Applications with Visual Studio
Office 365 Development July 2014.
Microsoft Dynamics.
7/19/2019 2:53 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
ASP.NEXT Mike Ormond Developer & Platform Group Microsoft Ltd
Presentation transcript:

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

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

3

4 VS 2010 IDE

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 VS 2010 版本功能與目標 Audience Feature Set Minimal Complete HobbyistEnterprise Professional Ultimate Express Premium

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 VS 2010 三大主軸訴求 Set your ideas free Set your ideas free Simplicity Through Integration Simplicity Through Integration Quality Code Ensured 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

13

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.NET Framework 與 CLR 回顧.NET 1.0.NET 1.1.NET NET CTP CLR 1.0 CLR 1.1 CLR 2.0 CLR 4 SP1

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

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

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

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 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

Dynamic Data

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 1. Task Parallel Library (TPL) 2. Parallel LINQ (PLINQ) 3. Coordination Data Structures (CDS) 4. System.Threading Improvements

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 1. ASP.NET Chart Controls 2. ASP.NET MVC ASP.NET AJAX Web Deployment with VS VS 2010 Web Designer Improvements 6. ASP.NET Core Services 7. ASP.NET Web Form

1. ASP.NET Chart Controls now built-into ASP.NET 4.0

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

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

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

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

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

ASP.NET AJAX 4 - Client Templates Client-Side {{ LastName }}, {{ FirstName }}

Microsoft AJAX CDN Free CDN hosting of AJAX library scripts ASP.NET AJAX 4 jQuery and jQuery Validation Built-in support with

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 Web.config Transformation Database deployment Web packaging from VS 2010 One-Click publishing

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

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

XML Documentation Comments

44 ASP.NET Snippet JavaScript IntelliSense Updating

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

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

Extensible Output Caching Web.Config.aspx

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

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

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

MetaKeywords & MetaDescription Page.MetaKeywords Page.MetaDescription

Enabling View State for Individual Controls

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

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

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

ClientIDMode property AutoID Static Predictable Inherit

57 MetaKeyword ViewState ClientID

Persisting Row Selection in Data Controls ASP.NET 2.0 &3.5 RowIndex ASP.NET 4.0 Data Key

Html Encoded Code Expressions

Project Template Changes Empty ASP.NET Web Application Web Site Project Templates Web Application Templates Online Templates

62 Persisting Row Selection Html Encoded Code Expressions Project Template

Rendering an Outer Table for Templated Controls RenderOuterTable Property FormView Login PasswordRecovery ChangePassword Wizard CreateUserWizard

ListView Control Enhancements ASP.NET 3.5 ASP.NET 4.0

CheckBoxList and RadioButtonList Control Enhancements RepeatLayout – OrderedList 、 UnorderedList

Menu Control Improvements IncludeStyleBlock Property

67 Rendering an Outer Table CheckBoxList and RadioButtonList Menu Control

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.