ASP.NET 4.5
   Developer Preview
          Jon Galloway
http://weblogs.asp.net/jgalloway
        SoCal Code Camp
Agenda
•   Overall focus areas for ASP.NET 4.5
•   ASP.NET 4.5 Web Forms
•   Common features
•   Where to find more
Visual Studio 11
ASP.NET 4.5 Web Forms
• Data
  – Strongly typed binding
  – Attributed models (and their advantages)
  – Model binding
• HTML5
• HTML Encoding
ASP.NET Core

Caching       Modules     Globalization

 Pages         Controls   Master Pages

 Profile        Roles     Membership

Intrinsics    Handlers        etc.
Web          Web
        MVC
Forms         Pages
   ASP.NET Core

   .NET Runtime
Data in ASP.NET MVC
• What does MVC look like?
                             Controller
   Request     Controller    Retrieves Model
                             “Does Stuff”




                             View
    Response     View        Visually represents
                             the model
Data access paradigms




Database First         Model First          Code First


Start with schema,   Design a model,     Code a model,
generate a model     generate a schema   generate a schema
                     and code
ASP.NET 4.5 Web Forms
• Data
  – Strongly typed binding
  – Attributed models (and their advantages)
     • Code-first
     • Dynamic Data aware
     • Easy to use unobtrusive validation
  – Model binding
• HTML5
• HTML Encoding
HTML5 Form Features
ASP.NET Common Features
•   Async
•   Bundling / Minification
•   Flexible Validation
•   Performance
Async Handlers / Modules
public class MyAsyncHandler : HttpTaskAsyncHandler
{
    // ...

    // ASP.NET automatically takes care of integrating the Task based override
    // with the ASP.NET pipeline.
    public override async Task ProcessRequestAsync(HttpContext context)
    {
        WebClient wc = new WebClient();
        var result =
            await wc.DownloadStringTaskAsync("http://www.microsoft.com");
        // Do something with the result
    }
}
ASP.NET Common Features
•   Async
•   Bundling / Minification
•   Flexible Validation
•   Performance
Where to find more
• http://asp.net/vnext
• http://www.microsoft.com/visualstudio/en-
  us/visual-studio-11