Your SlideShare is downloading. ×
0
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
What’s New in ASP.NET 4
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

What’s New in ASP.NET 4

6,904

Published on

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, …

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.

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

  • Be the first to like this

No Downloads
Views
Total Views
6,904
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
169
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 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)
  • Extensible output cachinghttp://www.4guysfromrolla.com/articles/061610-1.aspx (Disk Cache Example Code)DEMOS: Custom cache provider, AppFabric distributed cache
  • Extensible output cachingDEMOS: Custom cache provider, AppFabric distributed cache
  • 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)
  • Transcript

    • 1.
    • 2. You generally remember…<br />
    • 3. @toddanglin<br />
    • 4. Todd Anglin<br />Chief Evangelist, Telerik<br />Microsoft MVP<br />ASPNET Insider<br />NHDNUG President & O’Reilly Author<br />telerikwatch.com<br />@toddanglin<br />
    • 5. Telerik<br />One-stop provider for .NET tools & UI components<br />UI DATA PRODUCTIVITY TESTING TFS CMS<br />.NET Developer Productivity<br />UI: ASP.NET AJAX, MVC, WinForms, Silverlight, WPF<br />DATA: Telerik Reporting, OpenAccess ORM<br />CMS: Sitefinity CMS<br />PRODUCTIVITY: JustCode<br />TESTING: WebUI Test Studio<br />TFS: Work Item Manager, Project Dashboard<br />
    • 6. Today’s Road Map<br />
    • 7. What are the technologies of the web?<br />
    • 8. jQuery<br />
    • 9. Memory Lane<br />ASP 1.0<br />CSS<br />
    • 10. At the time of ASP.NET 1…<br />JavaScript was a pain<br />But, IE6 held 96% browser share<br />.NET was brand new<br />WinForms was new, VB6 was popular<br />Yet to be invented:<br />AJAX*<br />jQuery<br />Web 2.0<br />Silverlight/XAML<br />Twitter<br />
    • 11. Mobile<br />MVC<br />HTML5<br />Cloud<br />REST Web Services<br />AJAX<br />RIA<br />JSON<br />Video<br />CSS3<br />WebMatrix<br />Browser War II<br />Social Media<br />
    • 12. 4<br />
    • 13. What is “ASP.NET”?<br />
    • 14. ASP.NET<br />Core Services<br />WebForms<br />MVC<br />Dynamic Data<br />AJAX<br />
    • 15. Abstracted<br />HTML + JS<br />asp.net webforms<br />asp.net mvc<br />On the Metal<br />
    • 16. introduction to asp.net 4.0<br />putting you in control<br />
    • 17. Abstracted<br />HTML + JS<br />asp.net webforms<br />asp.net mvc<br />On the Metal<br />
    • 18. *important notes<br />Side-by-side enabled<br />Backwards & Upwards compatible<br />controlRenderingCompatibilityVersion<br />VS 2010 only<br />
    • 19. ViewState<br />ViewStatecan be opt-in<br />ViewStateMode<br />Enabled/Disabled/Inherit<br />
    • 20. Control IDs<br />4 Mode:<br />AutoID<br />Static<br />Inherit<br />Predictable (*default)(+ ClientIDRowSuffix)<br /><!--Set client ID--><br /><asp:ListView<br />DataSourceID=“odsYourData"<br />ClientIDRowSuffix="ID"<br />ClientIDMode="Predictable"<br /><!--Global config-><br /><system.web> <br /> <pages clientIDMode="Predictable"><br /> </pages> <br /></system.web> <br />
    • 21. Routing<br />Improved in 4.0<br />Global.asax<br />public class Global : System.Web.HttpApplication<br />{<br /> protected void Application_Start(object sender, EventArgs e)<br /> {<br />RouteTable.Routes.Add("Product",<br /> new Route("Products/{category}",<br />new PageRouteHandler("~/Products.aspx")));<br /> }<br />}<br /><asp:Literal Text="<%$ RouteValue:Category %>" runat="server" /><br />
    • 22. New APIs<br />Page Meta Info<br />Page.MetaDescription = "this is meta description";<br />Page.MetaKeywords = "this is a meta keyword";<br />Permanent Redirect<br />Response.RedirectPermanent(url); //issues HTTP 301<br />Browser Capabilities (updated for new browsers + mobile)<br />HttpRequest.Browser.HttpBrowserCapabilities<br />
    • 23. Output Caching<br />Provider-based<br /><!--web.config--><br /><caching> <br /> <outputCachedefaultProvider="AspNetInternalProvider"> <br /><providers> <br /> <add name="DiskCache" <br /> type="Test.OutputCacheEx.DiskOutputCacheProvider, <br />DiskCacheProvider"/> <br /> </providers> <br /> </outputCache> <br /></caching> <br /><%--Configure cache provider per page/control--%><br /><%@ OutputCache Duration="60" VaryByParam="None" <br />providerName="DiskCache" %><br />?<br />
    • 24. Extensibility<br />Newly extensible:<br />Object Caching<br />System.Runtime.Caching<br />Invalid Path Characters<br />Request Validation<br />Encoding<br /><httpRuntimeencoderType="Samples.MyCustomEncoder, Samples" /> <br />Browser Capabilities<br />
    • 25. Controls<br />New<br />QueryExtender<br />Improved<br />ListView<br />FormView<br />Paging<br />Outer tables<br />Hidden DIV CSS<br />
    • 26. Client-side libraries<br />Microsoft Ajax Libraries are dead*<br />Long live jQuery<br />What does it mean?<br />For new client-side development, use jQuery<br />*NOTE: jQuery ships with ASP.NET 4<br />
    • 27. Dynamic Data<br />Core benefits:<br />Model-driven validation<br />Field Templates<br />//Enable via Code<br />GridView1.EnableDynamicData(typeof(Product), <br /> new { ProductName = "DefaultName" });<br /><!--OR Enable declaratively on page-%><br /><asp:DynamicDataManager ID="DynamicDataManager1" runat="server" <br />AutoLoadForeignKeys="true"> <br /> <DataControls> <br /> <asp:DataControlReferenceControlID="GridView1" /> <br /> </DataControls> <br /></asp:DynamicDataManager> <br />Now more flexible!<br />
    • 28. jQuery & MVC<br />Baked-in to ASP.NET<br />
    • 29. What’s Next<br />Razor & WebMatrix<br />
    • 30. For your research…<br />Changes to control rendering<br />New control features<br />Client controls & Ajax libraries<br />IIS changes<br />VS 2010 changes<br />ASP.NET MVC 2<br />Windows Azure<br />
    • 31. It’s too much!<br />
    • 32. thanks!<br />telerikwatch.com<br />@toddanglin<br />anglin@telerik.com<br />
    • 33. Additional Resources<br />What’s New in Microsoft ASP.NET 4 Web Forms and Dynamic Data<br />http://www.microsoftpdc.com/2009/FT58<br />Extensible output caching<br />http://www.4guysfromrolla.com/articles/061610-1.aspx(Disk Cache Example Code)<br />WebForms Routing<br />http://www.west-wind.com/weblog/posts/54760.aspx(Good discussion of ClientIDMode on Rick’s blog)<br />
    • 34. Demo Plan<br />Navigation – via template<br />Deep linking<br />GPU acceleration (approach)<br />Out-of-browser<br />Perspective 3D (if time)<br />RIA Services<br />Basic approach<br />Updating business layer<br />Blend 3 (if time)<br />

    ×