Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building a complete Web Application using ASP.net Orcas

0 views

Published on

Enterprise & Development Summit 2007 à Luxembourg : Building Web Applications Using ASP.NET "Orcas" and Microsoft Visual Studio Codename "Orcas"

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Building a complete Web Application using ASP.net Orcas

  1. 1. http://www.microsoft.lu/msdn / MSDN Event LuxembourgMSDN Event Luxembourg Building a Complete Web ApplicationBuilding a Complete Web Application using ASP.NET « Orcas » andusing ASP.NET « Orcas » and Visual Studio codename « Orcas »Visual Studio codename « Orcas » Patrice Lamarche WYGWAM patrice@wygwam.com http://patricelamarche.net
  2. 2. Super Early Bird Deadline: 31 July 2007Super Early Bird Deadline: 31 July 2007 5 - 9 November 20075 - 9 November 2007 Barcelona | SpainBarcelona | Spain http://www.microsoft.com/europe/techedhttp://www.microsoft.com/europe/teched
  3. 3. http://www.microsoft.lu/msdn / Enterprise & Development SummitEnterprise & Development Summit LuxembourgLuxembourg • Update on the Microsoft enterprise and development platform • In collaboration with CRP • Free of charge • 12 June – 9:00 till 17:15 • Register at http://www.microsoft.lu/msdn
  4. 4. http://www.microsoft.lu/msdn / VISUAL STUDIOVISUAL STUDIO « ORCAS »« ORCAS »
  5. 5. http://www.microsoft.lu/msdn / Multi-targetingMulti-targeting
  6. 6. http://www.microsoft.lu/msdn / Multi-targetingMulti-targeting • Visual Studio “Orcas” supports targeting multiple versions of the .NET Framework • Choose which Framework version to target when opening or creating an application – .NET Framework 2.0 (“Whidbey”) – .NET Framework 3.0 (Vista) – .NET Framework 3.5 (“Orcas”) • Visual Studio IDE only shows feature appropriate for your selected target version – Toolbox, Add New Item, Add Reference, Add Web Reference, Intellisense, etc
  7. 7. http://www.microsoft.lu/msdn / JavaScript IntellisenseJavaScript Intellisense
  8. 8. http://www.microsoft.lu/msdn / JavaScript DebuggingJavaScript Debugging • Easier way to debug javascript – Javascript debugging implemented in VS 2005 but not easily discoverable • Great debugging experience inside Visual Studio – Breakpoints – Value Evaluation – HTML Visualizer
  9. 9. http://www.microsoft.lu/msdn / JavaScript DocumentationJavaScript Documentation
  10. 10. http://www.microsoft.lu/msdn / CSS SupportCSS Support • Richer support for CSS styles – CSS property window – CSS inheritance viewer – CSS preview – CSS manager
  11. 11. http://www.microsoft.lu/msdn / DEMODEMO Creation of the Web Application « DVD Store »
  12. 12. http://www.microsoft.lu/msdn / IIS 7IIS 7
  13. 13. http://www.microsoft.lu/msdn / IIS 7 in two wordsIIS 7 in two words • New architecture • !!!Extensibility!!!
  14. 14. http://www.microsoft.lu/msdn / IIS 6 ArchitectureIIS 6 Architecture Monolithic serverMonolithic server implementationimplementation LimitedLimited customizationcustomization Fixed functionalityFixed functionality Limited ISAPILimited ISAPI Filter extensibilityFilter extensibility
  15. 15. http://www.microsoft.lu/msdn / IIS7 ArchitectureIIS7 Architecture Componentized serverComponentized server Pluggable modularPluggable modular functionalityfunctionality Small generic requestSmall generic request pipelinepipeline EnablesEnables Lightweight serversLightweight servers Custom / specializedCustom / specialized serversservers
  16. 16. http://www.microsoft.lu/msdn / IIS 6 & ASP.NETIIS 6 & ASP.NET • ISAPI Extension OnlyOnly processesprocesses ASP.NETASP.NET requestsrequests RuntimeRuntime limitationslimitations FeatureFeature duplicationduplication
  17. 17. http://www.microsoft.lu/msdn / IIS7 ASP.NET IntegrationIIS7 ASP.NET Integration • Classic Mode – For compatibility • Integrated Mode – Can process all requests – Enhanced functionality – Higher fidelity notifications
  18. 18. http://www.microsoft.lu/msdn / ConfigurationConfiguration • Ability to configure IIS 7 from your web.config – <system.webServer> section outside the System.Web • ApplicationHost.config for IIS global configuration
  19. 19. http://www.microsoft.lu/msdn / DEMODEMO IIS 7 Modules
  20. 20. http://www.microsoft.lu/msdn / ExtensibilityExtensibility • Almost everything is extensible – Modules – Config sections – IIS Manager UI – Etc…
  21. 21. http://www.microsoft.lu/msdn / DEMODEMO Creation of a Logging Module
  22. 22. http://www.microsoft.lu/msdn / ASP.NET « ORCAS »ASP.NET « ORCAS » Part 1
  23. 23. http://www.microsoft.lu/msdn / ASP.NET « Orcas »ASP.NET « Orcas » • ASP.NET 2.0 • Complete ASP.NET Ajax support – Better Visual Studio integration • Better integration with WCF • LINQ support – Easier and better Data Access
  24. 24. http://www.microsoft.lu/msdn / LINQ OVERVIEW ANDLINQ OVERVIEW AND ASP.NET INTEGRATIONASP.NET INTEGRATION
  25. 25. http://www.microsoft.lu/msdn / data != object
  26. 26. http://www.microsoft.lu/msdn / Introducing LINQIntroducing LINQ (Language Integrated Query)(Language Integrated Query) • Query, Set and Transform Operations for .NET • Makes querying data a core programming concept • Works with all types and shapes of data – Relational database – XML – Objects • Works with all .NET languages – New VB and C# have integrated language support – Support for both static typed and dynamic languages
  27. 27. http://www.microsoft.lu/msdn / LINQ ArchitectureLINQ Architecture ObjectsObjects <book><book> <title/><title/> <author/><author/> <price/><price/> </book></book> XMLXMLRelationalRelational LINQ enabled data sourcesLINQ enabled data sources LINQLINQ To ObjectsTo Objects LINQLINQ To XMLTo XML LINQ enabled ADO.NETLINQ enabled ADO.NET VBVB Others…Others… LINQLINQ To EntitiesTo Entities LINQLINQ To SQLTo SQL LINQLINQ To DatasetsTo Datasets .NET Language Integrated Query (LINQ).NET Language Integrated Query (LINQ) C#C#
  28. 28. http://www.microsoft.lu/msdn / LINQ BasicsLINQ Basics • Query Expressions can operate on information sources and apply query operators against them to return IEnumerable<T> sequences • Query Operators can be used against any .NET collection (IEnumerable<T>) – Built-in examples: Select, Where, GroupBy, Join, etc. – Extensibility model supports adding/replacing them
  29. 29. http://www.microsoft.lu/msdn / Searching/Sorting an ArraySearching/Sorting an Array string [] cities = { “Auckland”, “Oslo”, “Sydney”,string [] cities = { “Auckland”, “Oslo”, “Sydney”, ““Seattle”, “Paris”, “Los Angeles” };Seattle”, “Paris”, “Los Angeles” }; IEnumerable<string> places = from city in citiesIEnumerable<string> places = from city in cities where city.Length > 5where city.Length > 5 orderby city descendingorderby city descending select city;select city; GridView1.DataSource = places;GridView1.DataSource = places; GridView1.DataBind();GridView1.DataBind(); Array implementsArray implements IEnumerable<T>IEnumerable<T> LINQ QueryLINQ Query Expression usingExpression using Query OperatorsQuery Operators IEnumerable<string>IEnumerable<string> sequence result cansequence result can be used w/be used w/ databindingdatabinding
  30. 30. http://www.microsoft.lu/msdn / LINQ for SQLLINQ for SQL • Maps .NET classes to relational SQL data • Translates LINQ queries to SQL execution • Supports change tracking for insert, update, delete operations • Supports entity-level validation rules • Built on top of ADO.NET and integrates with connection-pooling and transactions
  31. 31. http://www.microsoft.lu/msdn / LINQ for SQL ArchitectureLINQ for SQL Architecture LINQ QueryLINQ Query ObjectsObjects SubmitChanges()SubmitChanges() SQL QuerySQL Query RowsRows SQL orSQL or StoredStored ProcsProcs LINQ for SQLLINQ for SQL (ADO.NET)(ADO.NET) SQLServerSQLServer from c in db.Customersfrom c in db.Customers where c.City == "London"where c.City == "London" selectselect new { c.Name, c.Phone }new { c.Name, c.Phone } select Name, Phoneselect Name, Phone from customersfrom customers where city = 'London'where city = 'London' ApplicationApplication Services:Services: - Change tracking- Change tracking - Concurrency control- Concurrency control - Object identity- Object identity
  32. 32. http://www.microsoft.lu/msdn / DEMODEMO Using LINQ with ASP.NET
  33. 33. http://www.microsoft.lu/msdn / MORE FUN IN YOUR WEBMORE FUN IN YOUR WEB APPS WITH ASP.NET AJAXAPPS WITH ASP.NET AJAX EXTENSIONSEXTENSIONS
  34. 34. http://www.microsoft.lu/msdn / ASP.NET AJAX ExtensionsASP.NET AJAX Extensions • New AJAX templates in Visual studio • Easy to use AJAX framework – Server-side ASP.NET controls – Client-side javascript framework • ScriptManager, UpdatePanel
  35. 35. http://www.microsoft.lu/msdn / ASP.NET AJAX Control ToolkitASP.NET AJAX Control Toolkit • Set of ASP.NET AJAX components • Provided by Microsoft and the community – Shared source – Hosted on http://www.CodePlex.com • Cross browser – IE 6, IE 7, Firefox, Safari, Opera
  36. 36. http://www.microsoft.lu/msdn / AJAX Control Toolkit ArchitectureAJAX Control Toolkit Architecture
  37. 37. http://www.microsoft.lu/msdn / DEMODEMO Integrating some ASP.NET AJAX control toolkit controls into a web page
  38. 38. http://www.microsoft.lu/msdn / BUILDING RICHER INTERNETBUILDING RICHER INTERNET APPLICATIONS WITHAPPLICATIONS WITH SILVERLIGHTSILVERLIGHT
  39. 39. http://www.microsoft.lu/msdn / SilverlightSilverlight • Small subset of WPF • Rich Interface Applications • Available thanks to a cross-platform plugin
  40. 40. http://www.microsoft.lu/msdn / SilverlightSilverlight • Interface creation in XAML • Multi-language support – C#, VB.net, Phyton • Visual Studio and Expression integration
  41. 41. http://www.microsoft.lu/msdn / DesktopDesktop MediaMedia & RIA& RIA WebWeb Microsoft Designer & Developer ToolingMicrosoft Designer & Developer Tooling DesignerDesigner Look, behavior, brand,Look, behavior, brand, and emotional connectionand emotional connection DeveloperDeveloper Function, deployment, data,Function, deployment, data, security, operational integritysecurity, operational integrity Server VistaServer Vista
  42. 42. http://www.microsoft.lu/msdn / 4242 BrowserBrowser Application / OSApplication / OS ContentContent PackagePackage XAMLXAML ProgrammingProgramming ModelModel ““Silverlight” RuntimeSilverlight” Runtime Plug-insPlug-insPlug-insPlug-ins Platform SpecificPlatform Specific Hosting ModelHosting Model Platform SpecificPlatform Specific Hosting ModelHosting Model JavaScriptJavaScript Native APINative API XML - DataXML - DataFontsFonts Video/AudioVideo/AudioImagesImages Native “Silverlight” APINative “Silverlight” APINative “Silverlight” APINative “Silverlight” API UI & Rendering CoreUI & Rendering CoreUI & Rendering CoreUI & Rendering Core Platform Abstraction LayerPlatform Abstraction LayerPlatform Abstraction LayerPlatform Abstraction Layer C# / VB.NETC# / VB.NET SilverlightSilverlight
  43. 43. http://www.microsoft.lu/msdn / Silverlight Web Media EcosystemSilverlight Web Media Ecosystem DistributeDistribute ExperienceExperience Expression MediaExpression Media EncoderEncoder for publishingfor publishing with Silverlightwith Silverlight Expression Blend forExpression Blend for creating mediacreating media experiencesexperiences + Existing ecosystem of+ Existing ecosystem of WMV technologyWMV technology partners / solutionpartners / solution providersproviders Up to 2x streamingUp to 2x streaming scalability overscalability over Windows Server 2003Windows Server 2003 New Secure contentNew Secure content delivery over SSL anddelivery over SSL and Cache/Proxy supportCache/Proxy support NewNew IIS7 Media PackIIS7 Media Pack withwith bit-rate throttling for lowerbit-rate throttling for lower cost for downloadedcost for downloaded mediamedia Interactivity, video, andInteractivity, video, and animation in browseranimation in browser and/or full screenand/or full screen Seamless, FastSeamless, Fast Installation for End UsersInstallation for End Users Consistent experience onConsistent experience on Mac and WindowsMac and Windows CreateCreate
  44. 44. http://www.microsoft.lu/msdn / 4444 • XAML and JavaScript in a web page – Access Silverlight via JavaScript – Support inline and external XAML/script • XAML and .NET Framework code – Silverlight hosts an x-platform .NET runtime • Code (C#/VB.NET) is compiled into an intermediate language (IL) • IL is run in a secure and “managed” environment – Silverlight loads external package containing IL and XAML SilverlightSilverlight
  45. 45. http://www.microsoft.lu/msdn / DEMODEMO Integrating Silverlight content into a web page
  46. 46. http://www.microsoft.lu/msdn / Questions?Questions?
  47. 47. http://www.microsoft.lu/msdn / © 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.© 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,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.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.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

×