+ All Categories
Home > Documents > Asp.net web forms new shiny things part 1

Asp.net web forms new shiny things part 1

Date post: 20-Dec-2014
Category:
Upload: lohith-gn
View: 2,273 times
Download: 0 times
Share this document with a friend
Description:
Presentation for BDotNet UG Meet Mar 30. New things in WebForms 4.5. Focus on Strongly Typed Data Binding Expression, Model Binding and Value Providers.
Popular Tags:
18
ASP.NET Webforms – New Shiny Things PART 1
Transcript
Page 1: Asp.net web forms new shiny things   part 1

ASP.NET Webforms – New Shiny ThingsPART 1

Page 2: Asp.net web forms new shiny things   part 1

About Me

Lohith G N

Developer Evangelist, Telerik

Microsoft MVP – ASP.NET/IIS (2012/13)

BDotNet

@kashyapa

About.me/kashyapa

Page 3: Asp.net web forms new shiny things   part 1

Agenda

Version recap

WebForms New Things

Typed Data

Binding

Model Binding

Value Providers

Page 4: Asp.net web forms new shiny things   part 1

timeline

1.0

Feb 2002

Original

VS.NET

1.1

Apr 2003

First Update

VS.NET 2K3

2.0

Nov 2005

F/W Rewrite

VS.NET 2K5

3.0

Nov 2006

WCF, WPF, WF

Blend

3.5

Nov 2007

LINQ

VS.NET 2K8

4.0

Apr 2010

Parallel

VS.NET 2K10

4.5

Aug 2012

Async

VS.NET 2K12

Page 5: Asp.net web forms new shiny things   part 1

ASP.NET WebForms – New Shiny Things

Typed Data Binding

Model Binding

Value Providers

Data Annontations for Validation

Unobtrusive client-side Validation

Granular Request Validation

Async Page Processing

Bundling & Minification

Page Inspector

Page 6: Asp.net web forms new shiny things   part 1

Typed Data BindingSTRONGLY TYPES DATA BINDING EXPRESSIONS

Page 7: Asp.net web forms new shiny things   part 1

Data Binding – Till Now

Old School - Bind() and Eval()

Uses Reflection

No IntelliSense

No Compile Time Checking

Trivia – where can we find these methods in the F/W ???

Page 8: Asp.net web forms new shiny things   part 1

DemoData Binding Old School

Page 9: Asp.net web forms new shiny things   part 1

Typed Data Binding

Controls expose ItemType property

Use Item for one way binding

Use BindItem for TwoWay binding

Intellisense Support

Go To Definition

Compile Time Checking

Page 10: Asp.net web forms new shiny things   part 1

DemoStrongly Typed Data Binding

Page 11: Asp.net web forms new shiny things   part 1

Model BindingMODEL BINDING IN WEBFORMS

Page 12: Asp.net web forms new shiny things   part 1

Data Binding - Old School

Manual Handling of CRUD

Cannot do Validation using Annotations

Bloated code behind

Page 13: Asp.net web forms new shiny things   part 1

DemoHandling CRUD Data Binding

Page 14: Asp.net web forms new shiny things   part 1

Model Binding – New School

bind value submitted from client to a model on the server

Benefits Rich Controls Support – all data controls support

Validation – Annotated Models

Extensible

Value Providers Form, Control, QueryString, Cookie, Profile, RouteData, Session

Page 15: Asp.net web forms new shiny things   part 1

DemoValue Providers

Page 16: Asp.net web forms new shiny things   part 1

Q&A

Page 17: Asp.net web forms new shiny things   part 1

Summary

Strongly Type Data Binding Expression in Data Controls

Model Binding

ItemType Property on Data Controls

Select/Update/Insert/Delete Method

Value Providers

Form, Control, QueryString, Cookie, Profile, RouteData, Session

Page 18: Asp.net web forms new shiny things   part 1

Thank You@kashyapa

http://kashyapas.com

http://About.me/kashyapa


Recommended