socal code camp 2011 - asp.net 4.5
TRANSCRIPT
![Page 1: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/1.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/3.jpg)
Visual Studio 11
![Page 4: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/5.jpg)
ASP.NET Core
Caching Modules
HandlersIntrinsics
Pages Controls
Globalization
Profile
Master Pages
MembershipRoles
etc.
![Page 6: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/6.jpg)
ASP.NET Core
.NET Runtime
Web Forms MVC Web
Pages
![Page 7: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/7.jpg)
• 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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/10.jpg)
HTML5 Form Features
![Page 11: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/11.jpg)
ASP.NET Common Features
• Async• Bundling / Minification• Flexible Validation• Performance
![Page 12: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/13.jpg)
ASP.NET Common Features
• Async• Bundling / Minification• Flexible Validation• Performance
![Page 14: SoCal Code Camp 2011 - ASP.NET 4.5](https://reader035.vdocuments.mx/reader035/viewer/2022081512/5560b375d8b42af43b8b47df/html5/thumbnails/14.jpg)
Where to find more
• http://asp.net/vnext• http://
www.microsoft.com/visualstudio/en-us/visual-studio-11