Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ASP.NET MVC

John Downey
September 26, 2011

ASP.NET MVC

John Downey

September 26, 2011
Tweet

More Decks by John Downey

Other Decks in Programming

Transcript

  1. Senior  Software  Developer   Housing  and  Food  Services    

    Bio:   ¡  Started  .NET  in  2003   ¡  Began  programming  on   C64     Contact:   ¡  @jtdowney   ¡  [email protected]   Image  from  XKCD   About  John  Downey  
  2. Common  Language  Runtime  (.NET  CLR)   ASP.NET  Runtime  (Sessions,  Cookies,

      Caching,  Routing)   Web  Forms   MVC   Dynamic   Data  
  3. Common  Language  Runtime  (.NET  CLR)   ASP.NET  Runtime  (Sessions,  Cookies,

      Caching,  Routing)   Web  Forms   MVC   Dynamic   Data  
  4. Common  Language  Runtime  (.NET  CLR)   ASP.NET  Runtime  (Sessions,  Cookies,

      Caching,  Routing)   Web  Forms   MVC   Dynamic   Data  
  5. VB6   • Large  population  of  programmers   • Data  driven  business

     apps   Win  Forms   • Can  use  Visual  Basic  .NET   • Similar  tooling  and  concepts   Web  Forms   • Apply  skills  to  the  web  
  6. <input  type="hidden"  name="__VIEWSTATE"  id="__VIEWSTATE"  value="/ wEPDwUKLTYyOTg4NzMzOQ9kFgJmD2QWAgIDD2QWBgIFD2QWAgIBDw8WAh4EVGV4dAURamRv d25leUBnbWFpbC5jb21kZAIJDw8WAh4GVXNlcklEBQU1MzgzNmRkAgsPZBYCAgEPPCsACQI ADxYGHg1OZXZlckV4cGFuZGVkZB4MU2VsZWN0ZWROb2RlZB4JTGFzdEluZGV4AkVkCBQrAA IFAzA6MBQrAAIWBB8ABQpBbGwgRXZlbnRzHghFeHBhbmRlZGcUKwACBQMwOjAUKwACFgYfA AUqQm9pbGVybWFrZXIgUmVnaW9uYWwgICBEdWUgRGF0ZSAgMy8xNS8yMDEwHghJbWFnZVVy

    bAUZfi9pbWFnZXMvaWNvbl9mcmllbmRzLmdpZh8FZxQrAAUFDzA6MCwwOjEsMDoyLDA6MxQ rAAIWCB8ABRxKaW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nZBQrAAIWBh8ABTExNTU1ICAtICBodHRwOi8vdGVhbTE1NTVwdWx zZS5vcmcvICAgMCAlIGNvbXBsZXRlHwkFGWh0dHA6Ly90ZWFtMTU1NXB1bHNlLm9yZy8fBW dkFCsAAhYGHwAFOjE2NDYgIC0gIEh0dHA6Ly93d3cucHJlY2lzaW9uZ3Vlc3N3b  
  7. Common  Language  Runtime  (.NET  CLR)   ASP.NET  Runtime  (Sessions,  Cookies,

      Caching,  Routing)   Web  Forms   MVC   Dynamic   Data  
  8. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  9. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  10. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  11. /User   /Edit   /5   Controller   Action  

    ID   Home   Index   http://example.edu/User/Edit/5   optional  
  12. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  13. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  14. Home   Index   Account   Login   Logout  

    Widget   Index   Create   Edit  
  15. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  16. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  17. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  18. Request   Match  route   Pre-­‐action   filters   Action

     on   controller   Kung-­‐fu   Build  model   Return  view   Post-­‐action   filters  
  19. {          “Framework”:  “ASP.NET  MVC”,    

         “Awesome”:  true,          “BestFriends”:  [                  “JSON”,                  “jQuery”          ]   }  
  20. ¡  Nerd  Dinner  -­‐  http://nerddinner.com/   ¡  StackOverflow  -­‐  http://stackoverflow.com/

      ¡  Phil  Haack  -­‐  http://haacked.com/   ¡  Scott  Guthrie  -­‐  http://weblogs.asp.net/scottgu/   ¡  ASP.NET  Website  -­‐  http://asp.net/mvc/   ¡  Professional  ASP.NET  MVC  1.0  from  Wrox   Resources