0
ASP.NET MVCArchitecture
Hands-on ASP.NET MVC
Theprojectlayout
How it works ›  Models   ›  Theysay this is where the business logic goes and DB       access.   ›  Properly put elsewh...
Browser                     r            Controlle                           How MVC works                         Model  ...
Typical steps1.    The user interacts with the user interface in some way.2.    The controller handles the input and conve...
Doing their jobs›  Model  ›    Models the data without any concern for how it        is to be displayed›  View  ›    D...
Remaining folders›  Shared  ›    Partial views›  Scripts  ›  JavaScript  ›  jQuery›  Content  ›  CSS  ›  Images› ...
Conclusion›  ASP.NET   MVC is another way to create dynamic    web sites›  It allows for much better design practices th...
Further study
Upcoming SlideShare
Loading in...5
×

02 architecture

247

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
247
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "02 architecture"

  1. 1. ASP.NET MVCArchitecture
  2. 2. Hands-on ASP.NET MVC
  3. 3. Theprojectlayout
  4. 4. How it works ›  Models ›  Theysay this is where the business logic goes and DB access. ›  Properly put elsewhere. More on that later. ›  Views ›  The visual portion ›  When done right, you have ONLY what is required to create the visual part of the HTML. ›  Code smell: when anything else is in there. ›  Controllers ›  Where the action happens! Glue that ties everything together.
  5. 5. Browser r Controlle How MVC works Model View
  6. 6. Typical steps1.  The user interacts with the user interface in some way.2.  The controller handles the input and converts the event into user action, understandable for the model.3.  The controller notifies the model of the user action, possibly resulting in a change in the models state.4.  A view queries the model in order to generate an appropriate user interface.5.  The view gets its own data from the model6.  The user interface waits for further user interactions, which restarts the cycle.
  7. 7. Doing their jobs›  Model ›  Models the data without any concern for how it is to be displayed›  View ›  Displays the data without any concern for how it is generated or manipulated›  Controller ›  Be the go-between so that both the View and the Model can concentrate on doing their parts exclusively well ›  May translate the data from the model so it can be displayed in the view ›  May read data from the view and process it into something the model can read
  8. 8. Remaining folders›  Shared ›  Partial views›  Scripts ›  JavaScript ›  jQuery›  Content ›  CSS ›  Images›  App_Data ›  Database ›  XML files
  9. 9. Conclusion›  ASP.NET MVC is another way to create dynamic web sites›  It allows for much better design practices than ASP.NET WebForms but it is more complex
  10. 10. Further study
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×