What’s New in ASP.NET 4
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

What’s New in ASP.NET 4

on

  • 7,081 views

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.

Statistics

Views

Total Views
7,081
Views on SlideShare
6,868
Embed Views
213

Actions

Likes
0
Downloads
164
Comments
0

6 Embeds 213

http://www.telerikwatch.com 180
http://telerikwatch.com 25
http://www.linkedin.com 5
http://www.netvibes.com 1
http://static.slidesharecdn.com 1
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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:   
  • 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)

What’s New in ASP.NET 4 Presentation Transcript

  • 1.
  • 2. You generally remember…
  • 3. @toddanglin
  • 4. Todd Anglin
    Chief Evangelist, Telerik
    Microsoft MVP
    ASPNET Insider
    NHDNUG President & O’Reilly Author
    telerikwatch.com
    @toddanglin
  • 5. Telerik
    One-stop provider for .NET tools & UI components
    UI DATA PRODUCTIVITY TESTING TFS CMS
    .NET Developer Productivity
    UI: ASP.NET AJAX, MVC, WinForms, Silverlight, WPF
    DATA: Telerik Reporting, OpenAccess ORM
    CMS: Sitefinity CMS
    PRODUCTIVITY: JustCode
    TESTING: WebUI Test Studio
    TFS: Work Item Manager, Project Dashboard
  • 6. Today’s Road Map
  • 7. What are the technologies of the web?
  • 8. jQuery
  • 9. Memory Lane
    ASP 1.0
    CSS
  • 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
  • 12. 4
  • 13. What is “ASP.NET”?
  • 14. ASP.NET
    Core Services
    WebForms
    MVC
    Dynamic Data
    AJAX
  • 15. Abstracted
    HTML + JS
    asp.net webforms
    asp.net mvc
    On the Metal
  • 16. introduction to asp.net 4.0
    putting you in control
  • 17. Abstracted
    HTML + JS
    asp.net webforms
    asp.net mvc
    On the Metal
  • 18. *important notes
    Side-by-side enabled
    Backwards & Upwards compatible
    controlRenderingCompatibilityVersion
    VS 2010 only
  • 19. ViewState
    ViewStatecan be opt-in
    ViewStateMode
    Enabled/Disabled/Inherit
  • 20. Control IDs
    4 Mode:
    AutoID
    Static
    Inherit
    Predictable (*default)(+ ClientIDRowSuffix)
    <!--Set client ID-->
    <asp:ListView
    DataSourceID=“odsYourData"
    ClientIDRowSuffix="ID"
    ClientIDMode="Predictable"
    <!--Global config->
    <system.web>
    <pages clientIDMode="Predictable">
    </pages>
    </system.web>
  • 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
  • 23. Output Caching
    Provider-based
    <!--web.config-->
    <caching>
    <outputCachedefaultProvider="AspNetInternalProvider">
    <providers>
    <add name="DiskCache"
    type="Test.OutputCacheEx.DiskOutputCacheProvider,
    DiskCacheProvider"/>
    </providers>
    </outputCache>
    </caching>
    <%--Configure cache provider per page/control--%>
    <%@ OutputCache Duration="60" VaryByParam="None"
    providerName="DiskCache" %>
    ?
  • 24. Extensibility
    Newly extensible:
    Object Caching
    System.Runtime.Caching
    Invalid Path Characters
    Request Validation
    Encoding
    <httpRuntimeencoderType="Samples.MyCustomEncoder, Samples" />
    Browser Capabilities
  • 25. Controls
    New
    QueryExtender
    Improved
    ListView
    FormView
    Paging
    Outer tables
    Hidden DIV CSS
  • 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!
  • 28. jQuery & MVC
    Baked-in to ASP.NET
  • 29. What’s Next
    Razor & WebMatrix
  • 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
  • 31. It’s too much!
  • 32. thanks!
    telerikwatch.com
    @toddanglin
    anglin@telerik.com
  • 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)