socal code camp 2011 - asp.net 4.5

14
ASP.NET 4.5 Developer Preview Jon Galloway http://weblogs.asp.net/ jgalloway SoCal Code Camp

Upload: jon-galloway

Post on 24-May-2015

688 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET 4.5 Developer Preview

Jon Gallowayhttp://weblogs.asp.net/jgalloway

SoCal Code Camp

Page 2: SoCal Code Camp 2011 - ASP.NET 4.5

Agenda

• Overall focus areas for ASP.NET 4.5• ASP.NET 4.5 Web Forms• Common features• Where to find more

Page 3: SoCal Code Camp 2011 - ASP.NET 4.5

Visual Studio 11

Page 4: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET 4.5 Web Forms

• Data – Strongly typed binding– Attributed models (and their advantages)– Model binding

• HTML5• HTML Encoding

Page 5: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET Core

Caching Modules

HandlersIntrinsics

Pages Controls

Globalization

Profile

Master Pages

MembershipRoles

etc.

Page 6: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET Core

.NET Runtime

Web Forms MVC Web

Pages

Page 7: SoCal Code Camp 2011 - ASP.NET 4.5

• What does MVC look like?

Data in ASP.NET MVC

Request

View

Controller

Response

ControllerRetrieves Model“Does Stuff”

ViewVisually representsthe model

Page 8: SoCal Code Camp 2011 - ASP.NET 4.5

Database First Model First Code First

Data access paradigms

Start with schema, generate a model

Design a model, generate a schema and code

Code a model, generate a schema

Page 9: SoCal Code Camp 2011 - ASP.NET 4.5

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

Page 10: SoCal Code Camp 2011 - ASP.NET 4.5

HTML5 Form Features

Page 11: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET Common Features

• Async• Bundling / Minification• Flexible Validation• Performance

Page 12: SoCal Code Camp 2011 - ASP.NET 4.5

Async Handlers / Modulespublic 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 } }

Page 13: SoCal Code Camp 2011 - ASP.NET 4.5

ASP.NET Common Features

• Async• Bundling / Minification• Flexible Validation• Performance