mix it up: visual studio 2010 and asp.net...
TRANSCRIPT
![Page 1: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/1.jpg)
Mix It Up:
Visual Studio 2010 and
ASP.NET 4.0Singapore
25 March 2009
![Page 2: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/2.jpg)
Mar Mix-It-Up:
Visual Studio 2010 and ASP.NET 4.0
Mix 01: Future of Web Development
with Visual Studio 2010 and ASP.NET 4.0
by
Maung Maung Phyo
![Page 3: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/3.jpg)
Session Agenda
• IDE Enhancements
– Design View vs Code View
• New / Enhanced / Rolled-up Technologies
– ASP.NET AJAX 4.0
– MVC
– Dynamic Data
• Web Deployment
![Page 4: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/4.jpg)
IDE Enhancements
• Improved CSS 2.1 Support
– ACID1 tested designer
• Enhanced HTML Editor
– HTML snippets
• More JavaScript Intellisense
– It’s just getting better!
– Document outline
– Support for jQuery
![Page 5: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/5.jpg)
Document Outline
![Page 6: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/6.jpg)
• XML Comments work Everywhere• Error Tolerance• Enhanced 3rd Party Library Support• Faster Updating
JavaScript IntelliSense 2.0Updated Architecture
0 1000 2000 3000 4000 5000 6000
ExtJS
Yahoo! UI
Dojo
Prototype
jQuery
Microsoft AJAX
VS 2008
VS 2010
11.7s
2x
5x
4x
3x
4x
6x
![Page 7: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/7.jpg)
XML Comments Works Everywhere
![Page 8: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/8.jpg)
<demotitle="Enhanced Web
Designer" />
![Page 9: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/9.jpg)
• Client IDs:– Developers have full control over the controls’
rendered client IDs– Remove ID bloat, and ‘mangling’
• URL routing for web-forms:– Friendly-URL handling for web-forms– Configuration model for URL routing
• View-state:– Disable on page, enable on specific controls– Disable on control, enable on child controls– GridView/ListView work better without view-state
ASP.NET Web-Forms
![Page 10: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/10.jpg)
• Continue ASP.NET Ajax innovation: RIA• Appeal to JavaScript developers • Provide support for the page developer• jQuery including IntelliSense
• Templates and data binding:– Client-side handling, REST or Web services– Covers page developer and
component developer scenarios
• DOM manipulation, selectors ..
ASP.NET AJAX
![Page 11: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/11.jpg)
• Ajax higher-level components:– Ajax Control Toolkit is a part of the strategy– New controls
• Centralized script libraries and break-up of libraries leads to better performance
ASP.NET AJAX
![Page 12: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/12.jpg)
<demotitle="AJAX 4.0
Preview" />
![Page 13: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/13.jpg)
• Appeal to those wanting separation of concerns, TDD, full control
• ASP.NET MVC 1.0 released on Mar 09
• ASP.NET MVC: (Model-View-Controller)– Enforces separation of concerns and provides full
control of markup. TDD is enabled– URL routing, tooling support– Get the benefits of ASP.NET:
• Profile, membership and roles, localization ..
ASP.NET MVC
![Page 14: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/14.jpg)
• Asynchronous controllers• Sub-controllers & views• Declarative controls, form validation• Ajax Extender
ASP.NET MVC (Future…)
![Page 15: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/15.jpg)
<demotitle="MVC Web Forms
in VS 2010" />
![Page 16: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/16.jpg)
• Make building data-driven Web apps easy– Scaffold tables and columns– Declarative validation with Data Model– Support custom field templates
• Available with FX 3.5 SP1 & VS 2008 SP1
ASP.NET Dynamic Data
![Page 17: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/17.jpg)
• More Data Sources– BusinessLogicDataSource – ADODataServicesDataSource
• Field Templates – Password
• Image Support – From file system– From database
• MVC Support– Client side validation– Support for business logic layer – Scaffolding over business logic layer
ASP.NET Dynamic Data 4.0 (Future…)
![Page 18: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/18.jpg)
<demotitle="Dynamic Data" />
![Page 19: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/19.jpg)
Web Deployment Today
![Page 20: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/20.jpg)
• Sum of All Files ≠ Application– IIS Configuration– GAC or COM Components– Certificates– Registry– Database
• Desktop ≠ Staging– Debug Flags– Connection Strings– Web Service Endpoints
Deployment Problems
![Page 21: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/21.jpg)
XML Document Transforms
• Enables web.config transformations for
– Debug
– Release
– Staging...
• Source + Transform = Result
• Simple, readable "transform" notation
<configuration xmlns:xdt=“http://schemas.microsoft..."><system.web><compilation xdt:Transform=“RemoveAttributes(debug)”/>
</system.web></configuration>
![Page 22: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/22.jpg)
Locators & Transforms
<add name="NorthwindConnectionString" connectionString="..."providerName="System.Data.SqlClient"xdt:Locator="Match(name)"xdt:Transform="Replace"/>
<add name="NorthwindConnectionString“connectionString="..." providerName="System.Data.SqlClient" xdt:Transform="Replace“xdt:Locator="Condition(@name='Northwind' or
@providerName='System.Data.SqlClient')" />
<authorization><allow roles="Admins"
xdt:Transform="InsertBefore(/configuration/system.web/authorization/deny[@users='*'])"
/></authorization>
![Page 23: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/23.jpg)
Packaging & Deploying
C:\MixItUpWeb.deploy.cmd [/T | /Y]
![Page 24: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/24.jpg)
<demotitle="Web Deployment
with VS 2010" />
![Page 25: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/25.jpg)
Additional Resources
• Visual Studio 2010 Home Page– http://www.microsoft.com/visualstudio/en-
us/products/2010/default.mspx
• Download VS 2010 CTP– http://www.microsoft.com/downloads/details.aspx?F
amilyID=922b4655-93d0-4476-bda4-94cf5f8d4814&displaylang=en
• ASP.NET 4.0 Roadmap– http://channel9.msdn.com/pdc2008/PC20/
• VS 2010 & ASP.NET 4.0 Video Podcasts– http://channel9.msdn.com/shows/10-4/
![Page 26: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/26.jpg)
Q&A
![Page 27: Mix It Up: Visual Studio 2010 and ASP.NET 4download.microsoft.com/download/1/8/5/18500F99-C593-42EC...Mar Mix-It-Up: Visual Studio 2010 and ASP.NET 4.0 Mix 01: Future of Web Development](https://reader036.vdocuments.mx/reader036/viewer/2022081607/5ec9d698643bd825532ff41a/html5/thumbnails/27.jpg)
© 2007 Microsoft Corporation. All rights reserved.Microsoft, Windows, Windows Vista and the Windows logo are either registered trademarks or trademarks of the
Microsoft Corporation in the United States and/or other countries.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.