Walther Aspnet4

2,571 views
2,457 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,571
On SlideShare
0
From Embeds
0
Number of Embeds
96
Actions
Shares
0
Downloads
2
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Walther Aspnet4

  1. 1. Stephen Walther Senior Program Manager Microsoft Corporation
  2. 2. Overview of Talk ASP.NET supports several very different types of web applications
  3. 3. ASP.NET 3.5 Service Pack 1 Microsoft Entity Framework ADO.NET Data Services Dynamic Data Microsoft AJAX Improvements Browser History Script Combining
  4. 4. Overview of Talk Build a simple video gallery website:
  5. 5. Overview of Talk ASP.NET supports several very different types of web applications ASP.NET Web Forms
  6. 6. ASP.NET Web Forms ASP.NET Web Forms 4.0 enables you to build websites with more compelling front-end user experiences.
  7. 7. ASP.NET Web Forms Designer-focused Developer Rapid application development with Visual Studio designer and tools Drag-and-drop controls from toolbox
  8. 8. ASP.NET Web Forms Source-focused developer: Likes to type out HTML tags Writes JavaScript code by hand Worried about every little angle bracket and pixel
  9. 9. ASP.NET Web Forms With ASP.NET 4.0, you are in control: Control Rendering Control IDs View State Website URLs XHTML and Accessibility
  10. 10. Code Snippets Ctrl-K, X Ctrl-K, S
  11. 11. Types of Code Snippets HTML div, table, img … ASP.NET scriptmanager, sqldatasource, formview … ASP.NET AJAX behavior, control … JScript function, forin …
  12. 12. FormView Improvements <asp:FormView ID=quot;Formview1quot; RenderTable=quot;falsequot; runat=quot;serverquot;>
  13. 13. ListView Improvements <asp:ListView ID=quot;Listview1quot; runat=quot;serverquot;> <LayoutTemplate> <div id=quot;itemContainerquot; runat=quot;serverquot; /> </LayoutTemplate> <ItemTemplate> <%# Eval(quot;Titlequot;) %> </ItemTemplate> </asp:ListView>
  14. 14. Control Your View State Control.ViewStateMode Enabled Disabled Inherit (default)
  15. 15. Control Your Client IDs Control.ClientIdMode Legacy Static Predictable Inherit (default)
  16. 16. Control Your Client IDs <system.web> <pages clientIdMode=quot;Predictablequot;> </pages> </system.web>
  17. 17. ASP.NET Routing for Search Engine Optimization Instead of: http://YourSite.com/Search.aspx?query=cats You can use: http://YourSite.com/Search/cats
  18. 18. Other Search Engine Optimization Improvements Page.Description Page.Keywords Response.RedirectPermanent(new url)
  19. 19. Redirects 300 multiple choices (e.g. offer different languages) 301 moved permanently 302 found (e.g. temporary redirect) 303 see other (e.g. for results of cgi-scripts) 307 temporary redirect
  20. 20. Web Standards XHTML Standards Strict or Transitional? Accessibility Standards Section 508, WCAG, ARIA?
  21. 21. ASP.NET Core Enhancements Cache Extensibility Create custom cache providers Browser Capabilities Extensibility Create custom browser capability providers Session State Compression Compress out-of-process session state
  22. 22. Overview of Talk ASP.NET supports several very different types of web applications ASP.NET ASP.NET Web Forms AJAX
  23. 23. ASP.NET AJAX
  24. 24. ASP.NET AJAX Client-Side Templates Client-Side Controls Client-Side Data Binding Read/Write Database Data from the Browser Cross-Browser Compatible Not tied to ASP.NET
  25. 25. ASP.NET AJAX Refactored Microsoft AJAX Library MicrosoftAjaxCore.js MicrosoftAjaxComponentModel.js MicrosoftAjaxSerialization.js MicrosoftAjaxGlobalization.js MicrosoftAjaxHistory.js MicrosoftAjaxNetwork.js MicrosoftAjaxWebServices.js MicrosoftAjaxApplicationServices.js MicrosoftAjaxTemplates.js (New ) MicrosoftAjaxAdoNet.js (New)
  26. 26. ASP.NET AJAX Learn more: Come to my ASP.NET AJAX Talk tomorrow @ 12:30
  27. 27. ASP.NET AJAX Created by John Resig Open Source Microsoft Product support Included with Visual Studio Shipping right now with ASP.NET MVC jQuery Intellisense Supported in Visual Studio 2008 (see Jeff King’s blog) Supported in Visual Studio 2010
  28. 28. ASP.NET AJAX Accordion AlwaysVisibleControl Animation AutoComplete Calendar CascadingDropDown CollapsiblePanel ConfirmButton
  29. 29. ASP.NET AJAX AjaxControlToolkit- ScriptFilesOnly.zip
  30. 30. ASP.NET AJAX
  31. 31. Overview of Talk ASP.NET supports several very different types of web applications ASP.NET ASP.NET ASP.NET Web Forms AJAX MVC
  32. 32. ASP.NET MVC Enables a clear separation of concerns Enables testability including test-driven development Enables fine-grained control over HTML and JavaScript
  33. 33. Overview of Talk ASP.NET supports several very different types of web applications ASP.NET ASP.NET ASP.NET ASP.NET Web Forms AJAX MVC Dynamic Data
  34. 34. ASP.NET Dynamic Data DynamicDataManager Control DynamicHyperLink Control Field Templates for Email and URL Support for Inheritance and Many-to-Many Relationships Entity Templates
  35. 35. ASP.NET Dynamic Data Entity Templates
  36. 36. Overview of Talk ASP.NET supports several very different types of web applications ASP.NET ASP.NET ASP.NET ASP.NET Web Forms AJAX MVC Dynamic Data
  37. 37. Conclusion ASP.NET Web Forms 4.0: Provides you with better control over the front- end user experience Has several improvements for the source- focused developer Puts you, the developer, in control of your HTML markup and code
  38. 38. Conclusion ASP.NET AJAX 4.0 Client-Side Templates and Controls jQuery New features coming with the AJAX Control Toolkit
  39. 39. Conclusion ASP.NET MVC Enables a clear separation of concerns Enables testability including test-driven development Enables fine-grained control over HTML and JavaScript
  40. 40. Conclusion
  41. 41. Resources • ASP.NET 4.0 and Visual Studio 2010 Web Development Overview http://www.asp.net/learn/whitepapers/ • CodePlex ASP.NET Previews http://www.CodePlex.com/AspNet • My Blog http://StephenWalther.com
  42. 42. Related Content Developing MVC Based Web Apps using ASP.NET MVC – Stephen Walther ASP.NET Dynamic Data – Harish Ranganathan ASP.NET AJAX 4.0 – Stephen Walther Web Development in Microsoft Visual Studio 2010 (Hands-on Lab)
  43. 43. Track Resources Resource 1 Resource 2 Resource 3 Resource 4
  44. 44. © 2009 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.

×