Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Asp.net web forms new shiny things part 1

2,790 views

Published 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.

  • Be the first to comment

  • Be the first to like this

Asp.net web forms new shiny things part 1

  1. 1. ASP.NET Webforms– New Shiny ThingsPART 1
  2. 2. About Me  Lohith G N  Developer Evangelist, Telerik  Microsoft MVP – ASP.NET/IIS (2012/13)  BDotNet  @kashyapa  About.me/kashyapa
  3. 3. Agenda WebForms Typed Version Model Value New Data recap Binding Providers Things Binding
  4. 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. 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. 6. Typed Data BindingSTRONGLY TYPES DATA BINDING EXPRESSIONS
  7. 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. 8. DemoData Binding Old School
  9. 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. 10. DemoStrongly Typed Data Binding
  11. 11. Model BindingMODEL BINDING IN WEBFORMS
  12. 12. Data Binding - Old School  Manual Handling of CRUD  Cannot do Validation using Annotations  Bloated code behind
  13. 13. DemoHandling CRUD Data Binding
  14. 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. 15. DemoValue Providers
  16. 16. Q&A
  17. 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. 18. Thank You@kashyapahttp://kashyapas.comhttp://About.me/kashyapa

×