Guthrie on ASP.NET 4
About This Presentation
Scott Guthrie demonstrates key ASP.NET 4 improvements: improved VS10 designer, smaller viewstate, semantic URLs, SEO tookit, euery extender and more.
- Originally posted on May 21, 2010
- Like this presentation?
-
- Share this presentation
About This Channel
AZ Groups
AZGroups has become the single place that makes it easy for you to get in touch with the technologies you're interested in.
If you're a user group leader, or have an event that you'd like posted on our Calendar of Events, please contact, Scott [dot] Cate [at] myKB [dot] com.
AZGroups.org is a centralized calendar for all Technology User Groups in Arizona. If you run a User Group, and would like you publish you meeting dates on the Calendar, please contact Scott at the address above.
More From This Author
See More
In this session, Jeff Wilcox highlights the key strategies and tactics that he uses to develop Win Phone 7 apps -- including this blockbuster app 4th & Mayor
In this session Mark Russinovich explains the architecture of Windows Azure and the magic that helps .NET developers scale in the cloud.
In this session, Scott Guthrie shares some insights about MVC 3 including newly released and upcoming features.
In this session, Scott Guthrie provides an overview of new and upcoming changes to the .NET ecosystem
Transcript
ASP.NET Web Forms 4
ASP.NET Web Forms 4
Presenter's Notes: 6
File->New Project
File->New Project demo
Presenter's Notes: Demos:Clean Web.ConfigStarter Project Template 5/21/2010 7:46 AM © 2007 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. 7
File->New Project
File->New Project demo
Presenter's Notes: Demos:Clean Web.ConfigStarter Project Template 5/21/2010 7:46 AM © 2007 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. 7
Code Optimized Web Profile
Code Optimized Web Profile
Presenter's Notes: 9
Slide 10
Presenter's Notes: 10
Slide 11
Presenter's Notes: Add Apply CSS as step 3 side to side slideSimplified markupTodo:Fix /Items indent Give asp:Menu an id--- Add a step 3 fpr CSS technique for super-attractive menus.. [[Look into ZEN-Garden stylesheets]] 11
Improved VS10 Designer CSS Support
Improved VS10 Designer CSS Support Attribute Selectorsh1[title]span[class=example]span[hello="Cleveland"][goodbye="Columbus"]a[rel~="copyright"]*[lang|="en"]"lang" pseudo-classhtml:lang(fr-ca)html:lang(de):lang(fr) > Q:lang(de) > Q
Presenter's Notes: 12
Improved VS10 Designer CSS Support
":first-child" pseudo-classdiv > p:first-childp:first-child em"inherit" value.container { color: inherit }#menu { font-family: inherit }border-color: transparentCorrect interpretation of invalid selectorsbody, ,p Improved VS10 Designer CSS Support
Presenter's Notes: 13
Smaller ViewState
Smaller ViewState
Presenter's Notes: 14
Semantic URLs
Semantic URLs /products.aspx?category=beverages /products/beverages
Presenter's Notes: 15
Semantic URLs
Semantic URLs /products.aspx?category=beverages /products/beverages
Presenter's Notes: 15
URL Routing
URL Routing demo
Presenter's Notes: Demos:Clean Web.ConfigStarter Project Template 5/21/2010 7:46 AM © 2007 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. 16
Other SEO Improvements
Other SEO Improvements New <meta> APIs on Pages:Page.DescriptionPage.KeywordsNew Response.Redirect() methods:Response.RedirectPermanent(newUrl)Response.RedirectToRoute(routeName)
Presenter's Notes: 17
IIS SEO Toolkit &URL Rewrite
IIS SEO Toolkit &URL Rewrite demo
Presenter's Notes: 5/21/2010 7:46 AM © 2007 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. 18
Slide 19
<asp:chart runat="server" />
Presenter's Notes: 19
<asp:QueryExtender/> Control
<asp:QueryExtender/> Control Works with EntityDataSource and LinqDataSourceEnables you to filter database resultsAccepts different types of expressions:Search RangePropertyCustom
Presenter's Notes: 20
ASP.NET Dynamic Data
ASP.NET Dynamic Data New Field TemplatesUrl, Email, EnumerationEntity TemplatesEasily change look and feel for objects / tables Automatic templates for ListView and FormViewMany to Many SupportInheritance Support
Presenter's Notes: 21
Model-aware control validation
Model-aware control validation Automatic UI support for validation rules GridView1.EnableDynamicData(typeof(Product));
Presenter's Notes: 22
Data Controls
Data Controls demo
Presenter's Notes: 5/21/2010 7:46 AM © 2007 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. 23
Data Controls
Data Controls demo
Presenter's Notes: 5/21/2010 7:46 AM © 2007 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. 23
Data
Data
Presenter's Notes: 24
ADO.NET Entity Framework
ADO.NET Entity Framework Major improvements with VS10 and .NET 4Improvements:Model First and POCOLazy LoadingPluralization/SingularizationExpanded LINQ supportForeign Keys Disconnected APIs to enable N-tier T4 Templates to customize code generation
Presenter's Notes: 25
AJAX
AJAX
Presenter's Notes: 26
VS 2010 JavaScript Intellisense
VS 2010 JavaScript Intellisense MuchImproved JavaScript IntelliSense
Presenter's Notes: 27
Seconds
11.7s 4x faster 2x faster 4x faster 1.4x faster 2x faster 6x faster Seconds
Presenter's Notes: We also support other frameworks heres intellisense update times for popular libsTODO Get Jeff King to do an update. High Priority, but use this as a fallback. Get the spreadsheet with the raw numbers for Jonah to play with. 28
Slide 29
Presenter's Notes: 29
Microsoft AJAX CDN
Microsoft AJAX CDN Free CDN hosting of AJAX library scriptsASP.NET AJAX 4jQuery 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>
Presenter's Notes: 30
Deployment
Deployment
Presenter's Notes: 31
Debug
Debug Release Staging
Presenter's Notes: With the MS Deploy tool, deploying your site, including its database to your site is easier than ever. It uses IIS extensions.Take Project, Take DB, Package it up, ACL, Certs and automate deployment to a remote server.TODO:// Maybe show Web.Config with several sub nodes with the different config settings within the app based on the type of server that its deployed to staging , testing , production X sets of config. Jonah graphic showing deployment of lots of stuff onto a server.Solution Explorer Screenshot with 3 web configs to begin, and then fade to this visual.2. Right Click Publish on the Project in Solution explorerShow graphic --Then redraw this visual showing 3 servers test / debug / deploy also add a DB to each.TODO: Do we want to call out the VS part of this Deploy is integrated into the VS workflow. The other thing is the database. We should add the DB to the visual. 32
Debug
Debug Release Staging
Presenter's Notes: With the MS Deploy tool, deploying your site, including its database to your site is easier than ever. It uses IIS extensions.Take Project, Take DB, Package it up, ACL, Certs and automate deployment to a remote server.TODO:// Maybe show Web.Config with several sub nodes with the different config settings within the app based on the type of server that its deployed to staging , testing , production X sets of config. Jonah graphic showing deployment of lots of stuff onto a server.Solution Explorer Screenshot with 3 web configs to begin, and then fade to this visual.2. Right Click Publish on the Project in Solution explorerShow graphic --Then redraw this visual showing 3 servers test / debug / deploy also add a DB to each.TODO: Do we want to call out the VS part of this Deploy is integrated into the VS workflow. The other thing is the database. We should add the DB to the visual. 32
Debug
Debug Release Staging
Presenter's Notes: With the MS Deploy tool, deploying your site, including its database to your site is easier than ever. It uses IIS extensions.Take Project, Take DB, Package it up, ACL, Certs and automate deployment to a remote server.TODO:// Maybe show Web.Config with several sub nodes with the different config settings within the app based on the type of server that its deployed to staging , testing , production X sets of config. Jonah graphic showing deployment of lots of stuff onto a server.Solution Explorer Screenshot with 3 web configs to begin, and then fade to this visual.2. Right Click Publish on the Project in Solution explorerShow graphic --Then redraw this visual showing 3 servers test / debug / deploy also add a DB to each.TODO: Do we want to call out the VS part of this Deploy is integrated into the VS workflow. The other thing is the database. We should add the DB to the visual. 32
Deployment
Deployment demo
Presenter's Notes: 5/21/2010 7:46 AM © 2007 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. 33
Deployment
Deployment demo
Presenter's Notes: 5/21/2010 7:46 AM © 2007 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. 33
TFS 2010 Improvements
TFS 2010 Improvements Easy to install and configureLess than 20 minutes setup experienceNow runs on Windows client and Domain ControllersNow supports SQL Express as an optionProvides integrated team serverSource controlsBug / work item trackingAutomated build server w/ continuous integration supportInexpensiveNow included with all MSDN subscriptions
Presenter's Notes: 34
Lots of other cool things
Lots of other cool things VB, C# and F# language improvementsWPF and SilverlightWindows FormsSharePointWCF and WorkflowParallel Extensions Code Contracts, MEF, Base Class LibrariesC++VSTS, Architect, Test and Enterprise features
Presenter's Notes: 35
VS 2010 and ASP.NET 4
VS 2010 and ASP.NET 4 Now available for downloadMakes existing things better + cleanerReally nail common scenariosLots of new features to take advantage of
Presenter's Notes: 36