Presentation Thesis

1,675 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,675
On SlideShare
0
From Embeds
0
Number of Embeds
22
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Presentation Thesis

  1. 1. Choosing between asp.net web forms and mvc<br />Student:Naim Latifi<br />
  2. 2. Agenda<br />Web users interfaces<br />Web Presentation Patterns<br />Overview of ASP.NET web forms<br />Seperation of concerns<br />Overview of ASP.NET MVC<br />ASP.NET MVC request flow<br />Making the choice <br />
  3. 3. Web user interfaces <br />Classic ASP<br />ColdFusion<br />PHP<br />JSP<br />Perl<br />ASP.NET web forms<br />ASP.NET MVC<br />
  4. 4. Web presentation patterns<br />Web forms<br />MVC<br />Ruby on Rails<br />Mono Rail<br />Others......<br />
  5. 5. Overview of ASP.NET Web forms<br />Tooling <br />Postbacks<br />Seperation of HTML interface from app. Logic<br />Event based programming model<br />Allow third parties to create controls<br />Rapid development <br />
  6. 6. Seperation of concerns<br />Presentation logic, business logic and data access are mixed together too often<br />Hard to manage the code, goes agains good OO principles<br />Each component has its own responsibility<br />Avoid repeating the code(DRY)<br />Easily testable <br />
  7. 7. Overview of ASP.NET MVC<br />Alternative to ASP.NET, not a replacement <br />Full control over markup<br />No code behind pages<br />Clear seperation of concerns<br />User/SEO friendly URL<br />Testability<br />No postbacks <br />No viewStates<br />
  8. 8. ASP.NET MVC request flow<br />6<br />Routing<br />Controller<br />View<br />1<br />2<br />5<br />3<br />Model<br />Data store<br />4<br />Http request from user<br />Routing mechanism forward the request to the controller<br />Controller calls model to prepare for action and update data or call the viewData <br />The model returns the requested data to controller<br />The controller choose a view to represent the model<br />View renders the result as HTML markup<br />
  9. 9. Choosing between MVC and web forms<br />More control details over markup<br />ASP.NETWeb forms:<br /><ul><li>Control eco system
  10. 10. State management
  11. 11. Design time support</li></ul>ASP.NET MVC<br /><ul><li>Do it yourself
  12. 12. Seperation of concern
  13. 13. Support testing
  14. 14. Extensibility features</li></ul>Shared ASP.NET features<br /><ul><li>Routing
  15. 15. Caching
  16. 16. Configuration
  17. 17. Services
  18. 18. Localization
  19. 19. Master pages</li></ul>Easy to use and build by just dragg and dropp<br />
  20. 20. Project<br />Time to run the projects<br />
  21. 21. .<br />Thank you for your attentions!<br />
  22. 22. .<br /> Questions ??????<br />
  23. 23. References <br />http://www.asp.net/mvc/videos/americas-next-top-model-view-controller-framework<br />http://videos.visitmix.com/MIX09/T23F<br />http://www.asp.net/mvc/videos<br />

×