With the recent release of ASP.NET 4.0, there are many new tools in the WebForms developer toolbox that make it possible to build faster, more standards-compliant web applications. In this session, you'll be introduced to all of the new major features in ASP.NET 4.0 and shown how these features can be leveraged to build better WebForms applications. From improved ViewState handling to powerful control over client IDs and caching, this session is your primer for making the upgrade to 4.0.
10. At the time of ASP.NET 1… JavaScript was a pain But, IE6 held 96% browser share .NET was brand new WinForms was new, VB6 was popular Yet to be invented: AJAX* jQuery Web 2.0 Silverlight/XAML Twitter
11. Mobile MVC HTML5 Cloud REST Web Services AJAX RIA JSON Video CSS3 WebMatrix Browser War II Social Media
21. Routing Improved in 4.0 Global.asax public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { RouteTable.Routes.Add("Product", new Route("Products/{category}", new PageRouteHandler("~/Products.aspx"))); } } <asp:Literal Text="<%$ RouteValue:Category %>" runat="server" />
22. New APIs Page Meta Info Page.MetaDescription = "this is meta description"; Page.MetaKeywords = "this is a meta keyword"; Permanent Redirect Response.RedirectPermanent(url); //issues HTTP 301 Browser Capabilities (updated for new browsers + mobile) HttpRequest.Browser.HttpBrowserCapabilities
26. Client-side libraries Microsoft Ajax Libraries are dead* Long live jQuery What does it mean? For new client-side development, use jQuery *NOTE: jQuery ships with ASP.NET 4
27. Dynamic Data Core benefits: Model-driven validation Field Templates //Enable via Code GridView1.EnableDynamicData(typeof(Product), new { ProductName = "DefaultName" }); <!--OR Enable declaratively on page-%> <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true"> <DataControls> <asp:DataControlReferenceControlID="GridView1" /> </DataControls> </asp:DynamicDataManager> Now more flexible!
30. For your research… Changes to control rendering New control features Client controls & Ajax libraries IIS changes VS 2010 changes ASP.NET MVC 2 Windows Azure
33. Additional Resources What’s New in Microsoft ASP.NET 4 Web Forms and Dynamic Data http://www.microsoftpdc.com/2009/FT58 Extensible output caching http://www.4guysfromrolla.com/articles/061610-1.aspx(Disk Cache Example Code) WebForms Routing http://www.west-wind.com/weblog/posts/54760.aspx(Good discussion of ClientIDMode on Rick’s blog)
34. Demo Plan Navigation – via template Deep linking GPU acceleration (approach) Out-of-browser Perspective 3D (if time) RIA Services Basic approach Updating business layer Blend 3 (if time)
Hinweis der Redaktion
Getting the Most of Out of What's New in ASP.NET 4.0With the recent release of ASP.NET 4.0, there are many new tools in the WebForms developer toolbox that make it possible to build faster, more standards-compliant web applications. In this session, you'll be introduced to all of the new major features in ASP.NET 4.0 and shown how these features can be leveraged to build better WebForms applications. From improved ViewState handling to powerful control over client IDs and caching, this session is your primer for making the upgrade to 4.0.
Bogus chart – based on “research” by Wiman & Meirhenry, and Edgar Dale 1960Research since proven to be made-up. Still, fun slide…
jQuery is increasingly the “baseline” JavaScript experience
TBL Server Info: http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com/first242.html(Cost: $6500, Type: NeXTcube, Online: Aug 1991)Mosaic: http://www.ncsa.illinois.edu/Projects/mosaic.htmlIE3 introduces first real support for CSS (1996): http://en.wikipedia.org/wiki/Internet_Explorer_3
Focus: giving web forms developers more controlFormView: RenderTable=FalseListView: No longer requires LayoutTemplateViewSateMode: Enabled,Disabled,Inherit(default)ClientIdMode: Legacy (tmpName),Static,Predictable,Inherit(default)URLs: Routing engine, Page.RouteData, RouteParameter for data source controlsSEO: Page.Description, Page.Keywords, Response.RedirectPermanentQueryExtender: New control for Iqueryable filtersBrowser Capabilities Extensibilty: better targeting for devicesOut-of-proc Session State compressionFeature highlights:Increased control over ViewStateImproved cachingClient-side focusTemplatesControlsDataContext
http://www.west-wind.com/weblog/posts/54760.aspx (Good discussion of ClientIDMode on Rick’s blog)
Talk about backwards compat: <system.web> <pages controlRenderingCompatibilityVersion="3.5"/></system.web>
Custom field templateUsing declaratively in WebFormsMUST USE Dynamic control (DynamicField, DynamicControl, etc.)http://weblogs.asp.net/davidfowler/archive/2009/05/06/dynamic-data-preview-4.aspx (David Fowler on Dynamic Data)