ASP.NET MVC for Begineers

5,925 views
5,679 views

Published on

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

No Downloads
Views
Total views
5,925
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
466
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

ASP.NET MVC for Begineers

  1. 1. ASP.NET MVCfor Beginners<br />Shravan Kumar<br />Thomson Reuters<br />
  2. 2. Walk Away Knowing<br />Introduction to ASP.NET MVC<br />Problems with ASP.NET<br />
  3. 3. What is ASP.NET?<br />One web application<br />framework to rule them all…<br />ASP.NET<br />Caching<br />Modules<br />Globalization<br />Pages<br />Controls<br />Master Pages<br />Profile<br />Roles<br />Membership<br />Intrinsics<br />Handlers<br />Etc...<br />
  4. 4. ASP.NET WebForms<br />Presentation<br />ASP.NET CORE<br />Runtime<br />
  5. 5. Are you happy with ASP.NET?<br />
  6. 6. WebForms is great, But it does have some weaknesses<br />
  7. 7. No real role responsibility…<br />Master Page<br />Control<br />Control<br />UI<br />Presentation Logic<br />Business Logic<br />Data Access<br />Control<br />Control<br />Page<br />Control<br />Control<br />Control<br />Control<br />Who does what?<br />How and when?<br />
  8. 8. Control abstractions can be negative…<br />
  9. 9. It isn’t easy enoughto test<br />UI<br />Logic<br />
  10. 10. How does ASP.NET MVC Differ?<br />A new Web Application Project type<br />Not a replacement for WebForms<br /> -Builds on top of ASP.NET<br />Simply an another option<br />
  11. 11. Now ASP.NET<br />ASP.NET WebForms<br />ASP.NET<br />MVC<br />Presentation<br />ASP.NET CORE<br />Runtime<br />
  12. 12. What is MVC?<br />A design pattern<br />Separation of concerns<br />Acronym for Model ● View ● Controller<br />
  13. 13.
  14. 14. Separation of Concerns<br /><ul><li>SRP – Single Responsibility Principle
  15. 15. DRY – Don’t Repeat Yourself</li></ul>More easily testable (TDD)<br />Helps with concurrent development<br />
  16. 16. MVC<br />
  17. 17. Framework Goals<br />Frictionless Testability<br />Tight control over <markup/><br />User/SEO friendly URLs<br />Leverage the benefits of ASP.NET<br />Conventions and Guidance<br />
  18. 18. Clean URLs<br />REST-like<br />/products/update<br />/blog/posts/2008/08/12/mvc-is-cool<br />Friendlier to humans<br />/product.aspx?categoryid=123 to become<br />Becomes /products/kittens/<br />Friendlier to web crawlers<br />Search engine optimization (SEO)<br />
  19. 19. Extensible<br />Replace any component of the system<br /><ul><li>Interface-based architecture
  20. 20. Very few sealed methods / classes</li></ul>Plays well with others<br />
  21. 21. What is MVC? <br />Controller<br />Request<br />Step 1<br />Incoming request routed to Controller<br />
  22. 22. What is MVC?<br />Controller<br />Model<br />Step 2<br />Controller processes request and creates presentation Model<br />
  23. 23. What is MVC? <br />Controller<br />View<br />Step 3<br />Model is passed to View<br />
  24. 24. What is MVC? <br />Controller<br />View<br />Step 4<br />View transforms Model into appropriate output format<br />
  25. 25. What is MVC? <br />Controller<br />View<br />Response<br />Step 5<br />Response is rendered<br />
  26. 26. DEMO – ASP.NET MVC<br />
  27. 27. It’s Question Time!<br />
  28. 28. Be well,and stay in touchshravan.kasagoni@gmail.comBlog: http://theshravan.netTwitter: techieshravan<br />

×