1 / 18

ASP.NET MVC Overview

ASP.NET MVC Overview. By Muktadiur Rahman Date: 17/12/2009. ASP.NET MVC. What Is MVC Who Are Using MVC ASP.NET MVC What Is Missing When MVC ASP.NET MVC or Web Form Benefits of ASP.NET MVC. What Is MVC. An architectural pattern used to separate an application into three main aspects

eden
Télécharger la présentation

ASP.NET MVC Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASP.NET MVCOverview By MuktadiurRahman Date: 17/12/2009

  2. ASP.NET MVC • What Is MVC • Who Are Using MVC • ASP.NET MVC • What Is Missing • When MVC • ASP.NET MVC or Web Form • Benefits of ASP.NET MVC

  3. What Is MVC • An architectural pattern used to separate an application into three main aspects • Model. Set of classes that represent data and business rules for how data can be changed and manipulated • View. Application’s user interface • Controller. Set of classes that handles communication from user, overall application flow, and application-specific logic

  4. What Is MVC

  5. What Is MVC

  6. What Is MVC

  7. What Is MVC

  8. What Is MVC

  9. What Is MVC

  10. What Is MVC

  11. Who Are Using MVC • Java: Swing, Struts • Python: Django • PHP: CakePHP, Symfony • Ruby: Ruby on Rails • ASP .NET: Microsoft’s ASP .NET MVC

  12. ASP.NET MVC • A new way to build highly-testable apps on top of the ASP.NET Framework • No post-backs • Requests map to methods rather than pages • SEO-friendly URLs • Supports TDD and Unit Tests • Encourages use of design patterns and best practices

  13. ASP.NET MVC • ASP.NETMVC 1.0 • Requires .NET 3.5 SP1 / Visual Studio 2008 SP1 • Download Microsoft ASP.NETMVC 1.0 from http://asp.net/mvc • ASP.NETMVC 2.0(In beta) • Will be part of Visual Studio 2010 / ASP.NET 4.0

  14. What Is Missing • Not as RAD as using Web Forms • No drag and drop experience • Doesn’t build on all your experience with ASP.NET server controls

  15. When MVC • are disciplined and want to follow design • patterns and best practices • are interested in embracing unit tests • are interested in embracing TDD • are being told to use it by your employer/client

  16. ASP.NET MVC or Web Form • Building an intranet site with lots of data editing -Web Forms may be better suited • Building an Internet site where HTML, performance, and scalability are paramount -ASP.NETMVC may be better suited

  17. Benefits ASP.NET MVC • You get REST URLS • Normal ASP.NET • http://server/application/Products.aspx?id=4 • ASP.NETMVC • http://server/application/Products/show/beverages • You don't have to use the ".aspx" extensions (you never really did, but now it is easier to avoid). • Very clean, controlled HTML output. Less of what will show up is hidden from you, so you have a lot more control over the generated HTML. • Testing becomes much easier. Web forms where very difficult to test. Because of the controllers instead of the pages themselves handling things, testing becomes much easier. • It becomes far easier to optimize URLS for search engines. With Web Forms one needed to use URL rewriters which merely hid what the real URL was. • With Web Forms there was a sense of state. Pages maintained their state between posts. This made things a little bit easier, but this obfuscation hides how interactions between the client and the server actually occur. MVC gives you much more control over the client-server interaction

  18. THANK YOU Q & A

More Related