Asp.net web forms new shiny things part 1

  • 2,279 views
Uploaded on

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.

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.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,279
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
12
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. ASP.NET Webforms– New Shiny ThingsPART 1
  • 2. About Me  Lohith G N  Developer Evangelist, Telerik  Microsoft MVP – ASP.NET/IIS (2012/13)  BDotNet  @kashyapa  About.me/kashyapa
  • 3. Agenda WebForms Typed Version Model Value New Data recap Binding Providers Things Binding
  • 4. timeline 1.1 2.0 3.5 1.0 3.0 4.0 4.5 Apr 2003 Nov 2005 Nov 2007Feb 2002 Nov 2006 Apr 2010 Aug 2012 First F/W LINQ Original WCF, Parallel Async Update Rewrite WPF, WF VS.NET VS.NET VS.NET VS.NET VS.NET VS.NET Blend 2K8 2K10 2K12 2K3 2K5
  • 5. ASP.NET WebForms – New ShinyThings  Typed Data Binding  Granular Request Validation  Model Binding  Async Page Processing  Value Providers  Bundling & Minification  Data Annontations for Validation  Page Inspector  Unobtrusive client-side Validation
  • 6. Typed Data BindingSTRONGLY TYPES DATA BINDING EXPRESSIONS
  • 7. 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 ???
  • 8. DemoData Binding Old School
  • 9. 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
  • 10. DemoStrongly Typed Data Binding
  • 11. Model BindingMODEL BINDING IN WEBFORMS
  • 12. Data Binding - Old School  Manual Handling of CRUD  Cannot do Validation using Annotations  Bloated code behind
  • 13. DemoHandling CRUD Data Binding
  • 14. 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
  • 15. DemoValue Providers
  • 16. Q&A
  • 17. 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
  • 18. Thank You@kashyapahttp://kashyapas.comhttp://About.me/kashyapa